BoM Daily / design

components

Popover

A floating surface anchored to a trigger, built on Radix Popover. Unlike a tooltip it opens on tap and can hold interactive content, so it works for filter panels and supplementary info on touch. The surface fits within a phone width and keeps its close affordance reachable.

Basic

A button opens a panel with a short note and a small control inside.

Info trigger

An icon button can carry a definition or aside that a tooltip cannot hold on touch.

Sides

Anchor the surface on any edge of the trigger with the side prop.

Props

PropTypeDefaultDescription
triggerReactNodenoneElement that opens the popover. Rendered with asChild.
childrenReactNodenoneFloating surface content.
titlestringnoneOptional heading with a close button.
side"top" | "right" | "bottom" | "left""bottom"Edge of the trigger to anchor to.
align"start" | "center" | "end""center"Alignment along the side.
sideOffsetnumber8Gap between trigger and surface.
openbooleannoneControlled open state.
onOpenChange(open: boolean) => voidnoneOpen-state change handler.