A lightweight contextual surface anchored to a trigger.
Popover defines how EnterUI handles a lightweight contextual surface anchored to a trigger, including default structure, accessible states, and token-driven styling.
Popover is elevated but intentionally light.
<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>import {
Button,
Popover,
PopoverContent,
PopoverTrigger,
Switch,
} from "@froggdesign/enter-ui-react";Popover uses Radix behavior for dismissing, focus handling, portal layering, and trigger association.
PopoverContent supports align, side, sideOffset, and className.PopoverTrigger supports asChild.PopoverArrow is exported when an arrow is needed.Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.