Components

Popover

A non-modal panel anchored to a trigger.

Loading...

Installation

npx shadcn@latest add @fujin/popover

Usage

import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/components/ui/popover"
<Popover>
  <PopoverTrigger render={<Button variant="outline">Filters</Button>} />
  <PopoverContent>...</PopoverContent>
</Popover>

What's different from shadcn/ui

render replaces asChild, from Base UI - same as button.

API Reference

Prop

Type

Every other prop is forwarded to the Base UI Popover.

On this page