You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would need the ModalManager to create custom components that look like modals.
Problem Statement/Justification
I am creating a custom component which is similar to a drawer except that above a certain breakpoint it is displayed directly in the dom (without a drawer).
This is to have a drawer on mobile and the content of the drawer visible on desktop without having to duplicate the elements and thus avoid Flash Of Content.
I would like to use isTopModal from ModalManager to make my component detect as the topmost modal or not.
For that it would be necessary to export useModalManager or that useModal returns the index of the modal.
Proposed Solution or API
useModal could export index, isTopModal or manager.
modalManager and useModalManager could be exported.
Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
I would need the
ModalManager
to create custom components that look like modals.Problem Statement/Justification
I am creating a custom component which is similar to a drawer except that above a certain breakpoint it is displayed directly in the dom (without a drawer).
This is to have a drawer on mobile and the content of the drawer visible on desktop without having to duplicate the elements and thus avoid Flash Of Content.
I would like to use
isTopModal
fromModalManager
to make my component detect as the topmost modal or not.For that it would be necessary to export
useModalManager
or thatuseModal
returns the index of the modal.Proposed Solution or API
useModal
could exportindex
,isTopModal
ormanager
.modalManager
anduseModalManager
could be exported.Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: