Components

Popover

Rich floating content anchored to a trigger.

Usage

With @flagon-io/ui installed (see Installation), import it directly.

import { Popover, PopoverTrigger, PopoverContent } from "@flagon-io/ui";

<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>Content</PopoverContent>
</Popover>

Prefer to own the code?

You don’t have to install the package - you can copy this component into your project with the shadcn CLI and edit it freely.

npx shadcn@latest add https://ui.flagon.io/r/popover.json