Popover

To build in the app

Canon 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

#placements

Click toggles. Outside click and Escape close; focus returns to the trigger. The panel flips when it would leave the viewport.

Hover

#hover

interaction="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-arrow

no_arrow drops the pointer; the panel sits offset px from the trigger.

Action menu

#action-menu

The catalog's simple action menu. Items are buttons wrapped in PopoverClose so picking one closes the menu; a stone-200 divider sets the destructive item apart. The kebab version stacks a Popover trigger on an icon-only Button, which keeps its tooltip.

Rich menu with sections

#rich-menu

Items with a description line, a section label (ui-xs, uppercase, widest tracking) and dividers. The catalog's 10px label is ui-xs here: nothing shrinks below the scale.

Quick-edit status

#quick-edit

A 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-form

A 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-panel

A 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

NameTypeDefaultNotes
triggerReactNode—Required. One element that forwards ref and props (rendered with Radix asChild): a Button, a plain button, a link
interactionclick | hoverclickThe 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_delaynumber100Hover 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
placementtop | top-start | top-end | bottom | bottom-start | bottom-end | left | left-start | left-end | right | right-start | right-endbottom-startFloating UI placement, mapped to Radix side + align. Flips and shifts on collision (8px padding)
offsetnumber8Px between the trigger and the panel; the 6px arrow sits in the gap
arrow_insetnumber8On 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_arrowbooleanfalse
openboolean—Controlled open state; leave out for uncontrolled
onOpenChange(open: boolean) => void—
anchorbooleanfalseClick 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_classNamestring—Classes on the shell, mostly a width: "w-52", "w-[44rem] max-w-[calc(100vw-2rem)]"
shell_classNamestring—Classes that change the shell chrome, e.g. "overflow-visible" when the content has its own popovers
childrenReactNode—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