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
<Dialog> is a primitive used to create modal and non-modal dialogs.
Accessibility
When dialog is activated focus is moved to the dialog.
Default initial focus is on the first interactive element in the dialog.
The dialog should have an accessible name and announce itself as a "dialog".
The dialog should be dismissable by
activating a "close" button inside the dialog
pressing the escape key
blurring the dialog by clicking or tapping outside of it
If the dialog is modal obscured contents should be inert and inaccessible via keyboard and virtual cursor by constraining focus to the dialog in a "ring".
If the dialog is non-modal keyboard and virtual cursor focus is not constrained to the dialog and can leave the dialog causing it to close.
When the dialog is closed focus should return to the triggering element unless the dialog is non-modal and was closed by focus or virtual cursor leaving the dialog.
About
<Dialog>
is a primitive used to create modal and non-modal dialogs.Accessibility
Links & Resources
API Design
Props
children
modal
onDismiss
open
initialFocusRef
Links & Resources
Requirements
Open issues
Explorations
useDialog
hookThe text was updated successfully, but these errors were encountered: