Examples
Default
Open
With Toolbar Action
Props
Popover
Root of a popover. Holds the open state shared by its trigger and content. A direct re-export of the RadixPopoverPrimitive.Root primitive. It accepts all of that primitive’s props, unchanged.
PopoverAnchor
Optional element the content positions against instead of the trigger. A direct re-export of the RadixPopoverPrimitive.Anchor primitive. It accepts all of that primitive’s props, unchanged.
PopoverClose
Element that closes the popover when activated. UseasChild to render your own button.
A direct re-export of the Radix PopoverPrimitive.Close primitive. It accepts all of that primitive’s props, unchanged.
PopoverContent
Floating panel rendered in a portal, styled like theDropdownMenuContent surface. Focus moves into it on open and returns to the trigger on close. It renders a role="dialog", so pass aria-label or aria-labelledby to name it. The content unmounts when closed; forceMount is not supported.
Distance in pixels kept between the content and the viewport edge, as a number or a per-side object.
PopoverTrigger
Element that toggles the popover. UseasChild to render your own button.
On touch and pen, a press-and-release that moves past a small threshold counts as a drag, and the synthetic click that follows it is ignored, so scrolling past the trigger does not open it.
Exported types
Also exported from@fanvue/ui: PopoverAnchorProps, PopoverCloseProps, PopoverContentBaseProps, PopoverContentName, PopoverContentProps, PopoverProps, PopoverTriggerProps.
Setup: Installation · Theming