YuhuanStudioYunUIDocs
Overlays

Popover

Radix-backed floating panel anchored to a trigger, with alignment and offset props.

A floating panel anchored to a trigger, built on Radix Popover. PopoverContent is portalled, positioned below its trigger with a blurred, translucent surface, and animates in and out. Use it for rich, non-modal overflow content — forms, menus, or detail cards.

Import

import {
  Popover,
  PopoverTrigger,
  PopoverContent,
  PopoverClose,
} from "@yuhuanowo/yunui";

Basic

Popover

Alignment

PopoverContent accepts Radix's align (start / center / end) and sideOffset props to fine-tune where the panel sits relative to its trigger.

Aligned to the start

Parts

PartRole
PopoverRoot; holds open/onOpenChange (or runs uncontrolled).
PopoverTriggerElement that toggles the panel (use asChild to wrap a Button).
PopoverContentPortalled, animated floating panel; accepts align and sideOffset.
PopoverCloseElement that closes the popover when activated.

Popover re-exports Radix Popover parts with design-system styling. See the Radix Popover docs for the complete prop reference, including PopoverAnchor and positioning props.

On this page