Get started
Fabricator UI

Search documentation

Search pages, components, blocks, styles and colours.

Popover

PreviousNext

Displays rich content in a portal, triggered by a button.

Installation

bunx --bun fabricator-ui@latest add popover

Usage

import {
  Popover,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/components/ui/popover"
<PopoverTrigger>
  <Button variant="outline">Open Popover</Button>
  <Popover>
    <PopoverHeader>
      <PopoverTitle>Title</PopoverTitle>
      <PopoverDescription>Description text here.</PopoverDescription>
    </PopoverHeader>
  </Popover>
</PopoverTrigger>

Composition

Use the following composition to build a Popover:

PopoverTrigger
├── Button
└── Popover

Basic

A simple popover with a header, title, and description.

Align

Use the placement prop on Popover to control the horizontal alignment.

With Form

A popover with form fields inside.

API Reference

See the React Aria Popover documentation.