Aeris Modal Dialog
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
A modal on the native <dialog>: title, description, body (children), footer and a close button, on the strong pane over a scrim. Focus is trapped and returns to the trigger; Esc and backdrop clicks close it unless dismissible={false}; any element with data-close inside closes it; the page cannot scroll behind it. Under 640 px it is a full-width sheet at the bottom. The footer pair is a ghost "Cancel" and one primary. Client component.
It is part of Glass Meridian: daylight sky, frosted glass, one blue line. The style’s 92 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.
To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.
Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.