popover

Popover

A small panel that opens from a trigger and stays until dismissed, with a title and description, such as delivery details or a size guide.

States: Default

Parts

PartFileDoes
PopoverPopover.vueGroups all parts of the popover.
PopoverAnchorPopoverAnchor.vueSets the element the popover content is positioned against.
PopoverContentPopoverContent.vueHolds what the popover shows while open.
PopoverDescriptionPopoverDescription.vueExplains the popover in a short text below its title.
PopoverHeaderPopoverHeader.vueGroups the title and description at the top of the popover.
PopoverTitlePopoverTitle.vueNames what the popover is about.
PopoverTriggerPopoverTrigger.vueOpens and closes the popover.

Anatomy

<Popover>
  <PopoverTrigger />
  <PopoverContent>
    <PopoverHeader>
      <PopoverTitle />
      <PopoverDescription />
    </PopoverHeader>
  </PopoverContent>
</Popover>

Styling

PartRecipe
PopoverContentpopover-content
PopoverDescriptionpopover-description
PopoverHeaderpopover-header
PopoverTitlepopover-title

Install

Writes 8 files into components/ui/popover/. For agents, npx @frontic/ui docs popover prints this reference as markdown; the MCP server serves the same.

npm packages
@vueuse/core
reka-ui

API reference

Popover Popover.vue

Groups all parts of the popover.

PropTypeDefault
defaultOpenbooleanfalse
openboolean—
modalbooleanfalse
EventPayload
update:openvalue: boolean
SlotSlot props
default{ open: boolean; close: () => void; }

PopoverAnchor PopoverAnchor.vue

PopoverContent PopoverContent.vue

PopoverDescription PopoverDescription.vue

PopoverHeader PopoverHeader.vue

PopoverTitle PopoverTitle.vue

PopoverTrigger PopoverTrigger.vue

Example