Popover
An anchored non-modal dialog for small interactive content.
Ordinary demos on this page explicitly use Shadcn Rhea, with matching examples. 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.
An anchored non-modal dialog for small interactive content.
Content is positioned against Trigger, with side, align, sideOffset, alignOffset and collisionPadding. It is not modal and does not lock background scrolling or trap Tab. Outside press, focus moving beyond Trigger and Content, Escape and Close request dismissal. Moving focus between Trigger and portalled content stays inside. A focus-outside close leaves focus on the outside control; it does not restore focus to Trigger.
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. Refusing a focus.outside request keeps Content present and does not trap focus. A later interaction can request dismissal again. Focus-only requests report focusReason as programmatic because the neutral focus observation does not identify an input device.
Parts: Root, Trigger, Content, Title, Description, Close.
Draft source implementation. Full native/GPUI, compiler, packed-consumer, visual and independent acceptance remain pending; this page does not claim Finf completion.
Navigation presentation
Section titled “Navigation presentation”This separate example explicitly selects presentation="navigation" on Trigger and Content. Content uses the available anchored area and its own scrolling; the original default example above is unchanged.
The native links keep normal browser activation. This example does not implement the website directory’s unique-tree handback or a page-specific focus owner. Trigger styling remains provisional pending design review. New navigation-mode four-runtime native evidence is still pending; ordinary Popover results do not certify this mode.
This entry is workspace source. It is not a public proto-ui add catalog id.
Passing open selects controlled mode. Content placement defaults are separate from Root.
| Prop | Type | Default |
|---|---|---|
open | boolean undefined | uncontrolled |
defaultOpen | boolean | false |
disabled | boolean | false |
a11yLabel | string | '' |
side | 'top' 'right' 'bottom' 'left' | bottom |
align | 'start' 'center' 'end' | center |
sideOffset | number | 4 |
alignOffset | number | 0 |
collisionPadding | number | 8 |
presentation | 'default' 'navigation' | default |
side through collisionPadding belong to Content. presentation is the Shadcn Trigger and Content paint prop. Root exposes open, openPopover, close, toggle, and openChange.