Popover
To build in the appCanon popover from the catalog's rt-popover: level 2 of the disclosure ladder, a click (or hover) opens an anchored panel that holds anything from a three-item menu to an inline form. Brutalist shell (white, 2px stone-dark border, rounded-lg, brutalist-sm shadow) with an arrow that shares the border, at z-50 per the Beacon rule. Click mode is Radix Popover (outside click and Escape close it, focus returns to the trigger); hover mode is Radix HoverCard with the same markup, opening on hover and keyboard focus and staying open while the pointer crosses into the panel (the lifecycle bar's step cards and the sync card use it). On -start and -end placements the arrow is pinned arrow_inset from the panel's aligned corner by a rule in app/globals.css (2026-09-25), as the catalog does; Radix alone keeps it centred on the trigger, which on a wide trigger pointed at nothing. Canon deviation (conflict 11): the canon's row calls the mode `trigger`, which collides with the trigger slot, so here the slot is `trigger` and the mode is `interaction` — the name the app's PopoverComponent already uses, and the one to build Ui::PopoverComponent with (interaction: :hover). Menu recipes: the catalog's Tailwind grey 200 dividers and red 50 hovers are stone-200 and status-error-bg here (conflict 7).
App: Ui::PopoverComponent (to build; redesign of the app's PopoverComponent + popover controller)
Click, at each placement
#placementsClick toggles. Outside click and Escape close; focus returns to the trigger. The panel flips when it would leave the viewport.
Hover
#hoverinteraction="hover" opens on hover and focus with no delay and closes 100ms after the pointer leaves; the panel stays open while hovered. Same shell as click.
Ordered by on 12 Sep.
Without an arrow
#no-arrowno_arrow drops the pointer; the panel sits offset px from the trigger.
Quick-edit status
#quick-editA Badge as the trigger and a controlled Popover: picking a status updates the badge and closes the panel. Mock behaviour; the app posts the change and re-renders.
Inline form
#inline-formA small form in the panel. The field is plain .input-brutalist markup for now; the Fields lane is building the Input, Textarea and Checkbox units this will use.
Wide data preview
#wide-panelA 44rem panel capped at the viewport minus the 16px gutters. At 390 the panel shifts to stay on screen and the arrow slides along its edge to stay on the trigger.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| trigger | ReactNode | — | Required. One element that forwards ref and props (rendered with Radix asChild): a Button, a plain button, a link |
| interaction | click | hover | click | The canon's `trigger` mode, renamed because `trigger` is the slot. click is Radix Popover; hover is Radix HoverCard, opening with no delay on hover or keyboard focus and closing close_delay after the pointer leaves; the panel stays open while hovered |
| close_delay | number | 100 | Hover only: ms the panel waits after the pointer leaves before closing (2026-10-07), so a pointer crossing the gap into the panel can reach its footer action. The sync card uses 250 |
| placement | top | top-start | top-end | bottom | bottom-start | bottom-end | left | left-start | left-end | right | right-start | right-end | bottom-start | Floating UI placement, mapped to Radix side + align. Flips and shifts on collision (8px padding) |
| offset | number | 8 | Px between the trigger and the panel; the 6px arrow sits in the gap |
| arrow_inset | number | 8 | On top/bottom -start and -end placements, px between the arrow and the panel's aligned corner, as the catalog pins it (the --rt-arrow-inset rule in app/globals.css, which also keeps the arrow visible when the trigger is too narrow for Radix to centre it). On a centred placement, and on left/right sides, it is Radix's arrowPadding: the minimum the arrow keeps from either corner. In the app the popover controller places the arrow itself, so the rule is reproduced there |
| no_arrow | boolean | false | |
| open | boolean | — | Controlled open state; leave out for uncontrolled |
| onOpenChange | (open: boolean) => void | — | |
| anchor | boolean | false | Click only (2026-10-13): the trigger positions the panel (Radix Popover.Anchor) but does not toggle it; open/onOpenChange drive it. For a panel opened by one part of a larger control (the Overview's Custom period segment), where wrapping the whole control as the trigger would toggle on every segment |
| panel_className | string | — | Classes on the shell, mostly a width: "w-52", "w-[44rem] max-w-[calc(100vw-2rem)]" |
| shell_className | string | — | Classes that change the shell chrome, e.g. "overflow-visible" when the content has its own popovers |
| children | ReactNode | — | Required. The panel content; the shell adds the chrome |
| PopoverClose | { children: ReactElement; className?: string } | — | Companion export. Wrap a menu item or Cancel/Save button and clicking it closes the popover (Radix Popover.Close asChild). Inside a hover popover it renders the child as-is. App: click->popover#hideNow |