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,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/components/ui/popover"<Popover>
<PopoverTrigger render={<Button variant="outline" />}>
Open Popover
</PopoverTrigger>
<PopoverContent>
<PopoverHeader>
<PopoverTitle>Title</PopoverTitle>
<PopoverDescription>Description text here.</PopoverDescription>
</PopoverHeader>
</PopoverContent>
</Popover>Composition
Use the following composition to build a Popover:
Popover
├── PopoverTrigger
└── PopoverContentBasic
A simple popover with a header, title, and description.
Align
Use the align prop on PopoverContent to control the horizontal alignment.
With Form
A popover with form fields inside.
API Reference
See the Base UI Popover documentation.