<OverlayProvider>
Closed this issue · 5 comments
streamich commented
Add an optional <OverlayProvider>
component that will work together with <Overlay>
component to provide better experience. It would we be a render prop that injects disabled
prop into its child <App>
component.
<OverlayProvider component={App} />
This would allow <App>
to set properly:
aria-hidden
- inert
pointer-events: none
Maybe also create generic <App>
component that does all of that.
azukaar commented
Shouldn't it do
<OverlayProvider>
<App />
</OverlayProvider>
streamich commented
Actually, maybe better create <Modal>
component that uses <Overlay>
internally, and <ModalManager>
instead of <OverlayProvider>
.