AlertDialog
A modal decision with a primary message, safe cancel target and explicit action intent.
This page targets Shadcn Rhea and explicitly selects it for profile-aware parts. The headless trigger/action-body gap below remains open; this is not yet a fully unified Rhea demonstration. This does not change public compatibility defaults or imply complete browser, native-host or visual acceptance. Neutral Surface/Text atoms retain their own public semantics; the consumer composition supplies the family presentation theme.
A modal decision with a primary message, safe cancel target and explicit action intent.
Root fixes alert semantics. Mask owns modality; Content traps focus, blocks outside dismissal and starts at Cancel when available. Action emits action before requesting close. Application code owns the effect; no destructive operation is performed by the prototype. Escape and Cancel request dismissal.
Root supports controlled open or uncontrolled defaultOpen. Disabled commands do not activate. Supplying open leaves the committed value with the owner; listen to openChange and provide the next value.
Parts: Root, Trigger, Content, Header, Footer, Title, Description, Cancel, Action, Mask.
Draft source implementation. Full native/GPUI, compiler, packed-consumer, visual and independent acceptance remain pending; this page does not claim Finf completion.
The page selects Rhea Content with p-6, gap-6, family radius-4xl capped at 24px, popover colors and its own ring/shadow. New York remains the unscoped compatibility default, not this page’s chosen skin. Header/Footer are reusable passive groups. The modern Trigger is headless; its reusable passive Rhea action-body composition is still a named demo dependency rather than guessed page paint. Responsive layouts, small/media variants, native presence and full upstream equivalence remain unaccepted.
Alert Dialog is workspace source. There is no public proto-ui add target. Passing open selects controlled mode. Unlike Dialog, this Root has no alert prop: the prototype context keeps alert behavior on.
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | false |
disabled | boolean | false |
a11yLabel | string | '' |
These props belong to Root.