Fabricator UI
Search documentation
Search pages, components, blocks, styles and colours.
Displays rich content in a portal, triggered by a button.
Installation
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
└── PopoverBasic
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.