Popover
A lightweight contextual surface anchored to a trigger.
#Default usage
#Usage
import {
Button,
Popover,
PopoverContent,
PopoverTrigger,
Switch,
} from "@froggdesign/enter-ui";
export function Example() {
return (
<Popover>
<PopoverTrigger asChild><Button variant="secondary">Open popover</Button></PopoverTrigger>
<PopoverContent>
<div className="docs-preview-stack">
<strong>Preview settings</strong>
<span className="docs-preview-muted">Contextual controls stay near the trigger.</span>
<Switch aria-label="Preview updates" defaultChecked />
</div>
</PopoverContent>
</Popover>
);
}#Accessibility
Popover uses Radix behavior for dismissing, focus handling, portal layering, and trigger association.
#API
PopoverContentsupportsalign,side,sideOffset, andclassName.PopoverTriggersupportsasChild.PopoverArrowis exported when an arrow is needed.
#Styling
Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.
