Dialog | DialogContent
DialogContent#
Description#
- Renders the dialog scrim and panel, teleported to
body. Manages focus (entry, trap on Tab, restore on close), Escape to close, and scrim click.
Props#
size('sm'|'md'|'wide'|'lg'|'full') — Panel shape. Default:'md'.ariaLabel(string) — Accessible name for the dialog when no visibleDialogTitleis present.
Usage#
| |
Notes#
- The panel is teleported to
bodyto avoid clipping byoverflowon parent containers. - Focus enters the panel on open, Tab is trapped inside, and focus is restored to the previous element on close.
- With
size="full"the panel fills the entire window and no scrim is drawn.