UI / Components / foundations / Popover

Popover

Click-triggered floating card. Portal-rendered.

Floating card opened by clicking its anchor. Portal-rendered so it escapes overflow/transform stacking contexts. Useful for menus, filters, color pickers.

$npx dock-ui add popover

Usage

import { Popover } from "@/components/ui/popover";

<Popover anchor={<Button>Open</Button>}>
  <Card>Filter options here</Card>
</Popover>

Install

via CLI
$ npx dock-ui add popover
Writes the file(s) directly to your components/ui/ folder. You own the code.
For agents
curl -L https://ui.trydock.ai/r/popover.json
Returns a JSON manifest with file paths + contents. Agent-readable, LLM-fetchable.
← All components
Themes·Component kit · glossary
View on GitHub →