Popover
A React component in Beamline's Overlays category, in the free sample.
A small surface anchored to a trigger for a short form, a filter or an explanation; focus moves in and returns on close.
Use it for
- Editing one value in place, quick filters, a share link, explaining a number.
Not for
- Plain hints (tooltip).
- A list of actions (dropdown-menu).
- Large or multi-step forms (dialog or sheet).
Anatomy
- Popover
- PopoverTrigger
- PopoverAnchor
- PopoverContent
- PopoverClose
Variants
- flush: false (padded), true (lists and footers reach the edges)
- side: top, right, bottom, left
- align: start, center, end
States
- closed
- open
- closing
- phone sheet (with sheet: a bottom sheet with a title, drag and detents)
Keyboard
- Enter / Space on the trigger opens
- Tab moves inside
- Escape closes and returns focus to the trigger
- The anchored dialog is named by aria-labelledby or aria-label when supplied, otherwise by its sheet title or trigger; a controlled popover without a trigger needs an explicit name. The phone sheet uses its visible title.
Motion
Grows from the trigger (scale 0.97 → 1, fade) over --pui-motion-in; leaves over --pui-motion-out. Opens out of its trigger (_shared/overlay.module.css, source morph): the layer starts as the trigger's own box, offset onto it, and grows; the side next to the trigger is there at once so the nearest rows read within the ruled 90 ms, the far side settles by ~200 ms, content fades in over 90 ms; it closes back into the trigger in 180 ms. Until it has grown the press that opened it cannot land on a row. Never wider or taller than the room beside its trigger (Radix measures it; the content scrolls inside). Reduced motion: it fades.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
open / defaultOpen / onOpenChange | boolean | — | open: Controlled open state; omit to use defaultOpen. defaultOpen: Initial open state when uncontrolled; defaults to false. onOpenChange: Reports an open-state change; no callback by default. |
flush | boolean | false | On PopoverContent: Remove the inner padding (for lists and pickers that bring their own). |
sheet | { title, description? } | — | On PopoverContent: On a phone, open as a bottom sheet with this title (and line) instead of a layer beside the trigger: for a form or a long list, which a finger and an on-screen keyboard need room for. PopoverClose still closes it. Give the content a width that can grow (w-full with a minimum) rather than a fixed one, so it fills the sheet. |
side / align / sideOffset | string / number | "bottom" / "center" / 6 | |
style / ref | native props | — | style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
Built from
Used in
- Action center
- Admin users
- Agent builder
- Agent runs monitor
- AI agent workspace
- Appointment book
- Audience segments
- Services and hours
- Budget month
- Bulk item edit
- Call sheet
- Change orders
- Insurance claims
- Client forms
- Content workbench
- Collection batch edit
- Component properties
- Course builder
- Course home
- CRM pipeline
- Cut review
- Dashboard panels
- Day agenda
- Document finder
- Document review
- Drawing board
- Electrical design
- Equipment register
- Goods receiving
- Grading desk
- Grazing plan
- Guest messages
- Helpdesk inbox
- Hiring pipeline
- Instrument use
- Invoices
- Itinerary
- Linked appointments
- Maintenance plan
- Map explorer
- Market screener
- Media collection
- Messaging journeys
- Model playground
- Model workbench
- Order history and fills
- Order ledger
- Orders admin
- Pipeline record
- Plan templates
- Policy rules
- Portfolio overview
- Post release
- Production and lots
- Project board
- Publishing team
- Quality checks
- Query library
- Reading library
- Report library
- Resource booking
- Return queue
- Roof layout
- Session notes and tasks
- Session replay
- Signing request
- Slide presenter
- Social media scheduler
- Submittal register
- Team calendar
- Team chat
- Trading terminal
- Transaction review
- Versioned document
- Voice agent
- Workflow builder
- Workflow composer
- Workout logger
- Workout planner
- Workspace switcher
- Writing canvas
Dependencies
@radix-ui/react-popover
Import
import { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from "@beamline/popover";
Get it
Popover is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Popover is included in the free MIT sample. Get Beamline · Connect your agent
More in Overlays
- Command menu: Search-first list of every action: ranked matching, groups, keycap shortcuts and nested pages; inline as CommandPalette or in a ⌘K dialog as CommandMenu.
- Toast: Short results of an action stacked at an edge: point at the stack to fan it out and pause the timers; undo or retry in place; Alt+T, Escape and a swipe…
- Share dialog: Share a document, board or project: invite people by name or email with the access they get, change or remove anyone's access in place, and set who the…
- Context menu: Actions for an object on right-click, long-press, Shift+F10 or the menu key, opened at the pointer, with the same rows as the dropdown menu.
- Hover card: A preview of a person, link or record on hover or keyboard focus, without leaving the page; HoverCardProfile is the standard person preview.
- Product tour: A short guided tour over the real interface: a spotlight that glides from one element to the next while the rest of the screen dims, and a card beside…
- Bottom sheet: A phone panel that rests at a peek and follows the finger to full height; a flick down closes it, and the handle works from the keyboard.
- Sheet: A panel that slides in from an edge with the page still visible behind it: header and footer stay put while the body scrolls.
- Dropdown menu: A list of actions behind a trigger, with shortcuts, check items, headings and submenus; one highlight glides under the pointer and jumps with the keyboard.
- Dialog: A focused task over the page (create, invite, rename) with a title, body and footer; focus moves in, is trapped and returns on close.
- Alert Dialog: A blocking confirmation that must be answered: the scrim does not dismiss it, focus starts on the safe choice, and an async action keeps it open until…
- Tooltip: Short supporting text for a control: opens after a moment on hover and at once on keyboard focus; inside a toolbar group the next one opens instantly.