Popover

Storybook

A floating panel anchored to a trigger element. Uses Floating UI for positioning with automatic flip and shift when near viewport edges.

Basic (Client-only)

Click the trigger to toggle the popover. Click outside or press Escape to dismiss. This is the classic shadcn "Dimensions" example.

Alignments

Use align to control horizontal alignment: "start", "center" (default), "end".

Side Placement

Use side to place the popover on any side of the trigger. The popover will flip to the opposite side if there isn't enough space.

Server-controlled

Server opens and closes the popover. Uses the :if + show pattern.

Server state: show=false, result=nil