Zostel
Overlays Popover

Popover

A small panel by its button — a few fields, a choice, a note.

Preview

Usage

tsx
import { Popover, PopoverTrigger, PopoverContent, Button } from "zostel-ui";

<Popover>
  <PopoverTrigger asChild><Button variant="outline">Who's coming?</Button></PopoverTrigger>
  <PopoverContent className="w-80">…</PopoverContent>
</Popover>

PopoverContent

align
Type: "start" | "center" | "end"
Default: "center"

Against the trigger.

sideOffset
Type: number
Default: 4

Gap from the trigger, px.

side
Type: "top" | "right" | "bottom" | "left"
Default: "bottom"

Preferred side; flips when there is no room.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).