Popover
An anchored non-modal dialog for small interactive content.
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.
Popover is workspace source. There is no public proto-ui add target. Passing open selects controlled mode.
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | false |
disabled | boolean | false |
a11yLabel | string | '' |
presentation | 'default' 'navigation' | default |
The first four props belong to Root. presentation belongs to Content and Trigger. Content also accepts the Transition props and defaults side to bottom, align to center, sideOffset to 4, alignOffset to 0 and collisionPadding to 8. Title, Description and Close have no props.