Skip to content

Aeris

Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Live, interactive React component · light themeResponsive

About the Aeris Modal Dialog

A modal on the native <dialog>: a white panel with a hairline, 16 px corners and a soft shadow over a blurred slate scrim. The head holds an optional dotted eyebrow, the title (a card title in sm and md, a display title in lg), a description and a round outline close button that fills mist on hover; the body follows, and the footer sits under a thin rule with its buttons at the right. It arrives with a fade and a few pixels of rise. 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 with stacked buttons. Client component.

It is part of Aeris: white pages, soft grey cards, one electric blue. 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.

The same piece, drawn for a different look. Open one to compare it live.

Bavaria Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Form & Field Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Glass Meridian Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Grove Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Neo-Brutal Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Noir Aurora Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Soft Bento Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.

Swiss Tech Mono Modal Dialog

Native dialog element that traps focus and closes on Esc, shown as a bottom sheet on small screens.