overlay
A small floating panel anchored to a button, for extra controls or details. Does not block the page.
npx blankui add popoverimport { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Share</Button>
</PopoverTrigger>
<PopoverContent align="end">
<Stack gap={3}>
<Field label="Link">
<Input readOnly value={url} />
</Field>
<Button size="sm" onClick={copy}>
Copy link
</Button>
</Stack>
</PopoverContent>
</Popover>
PopoverContent takes side (top | right | bottom | left) and align (start | center | end).
| Avoid | Instead |
|---|---|
| An absolutely positioned div toggled with useState | <Popover> handles position, focus and closing |
| Interactive content in a Tooltip | <Popover> |
Install with the shadcn CLI: npx shadcn add https://blank.vageshwar.dev/r/popover.json