Toggle Sidebar B
header.lightDarkMode D

Popover

Floating panel anchored to a trigger, opened on click. For hover-triggered panels use HoverCard; for menus use DropdownMenu.

Default

Click trigger to open.

With form

Common pattern: small inline form inside a popover.

Sides

Set side to top, right, bottom, or left on the content.

API Reference

Props, events, and slots for each sub-component.

Popover

Props

PropTypeDefaultDescription
openbooleanOpen state. Supports v-model:open.
modalbooleanfalseTrap focus and dim background.

Events

EventDescription
update:openFires when the popover opens or closes. Enables v-model:open.

PopoverTrigger

Props

PropTypeDefaultDescription
asChildbooleanfalseMerge props onto the child element instead of a button.

PopoverContent

Props

PropTypeDefaultDescription
side"top" | "right" | "bottom" | "left""bottom"Anchor side.
align"start" | "center" | "end""center"Alignment along the side.
sideOffsetnumber4Gap from the trigger.

Accessibility

Keyboard shortcuts and ARIA behavior.

Keyboard

ShortcutDescription
SpaceWhen focus is on the trigger, toggles the popover open or closed.
EnterWhen focus is on the trigger, toggles the popover open or closed.
TabMoves through focusable elements inside the content, then out of the popover.
Shift+TabMoves focus to the previous focusable element.
EscCloses the popover and returns focus to the trigger.
  • Focus moves into the content when the popover opens.
  • The trigger exposes aria-expanded and aria-controls linking it to the content.