Popover
Popover is part of the Disclosure and overlays group. Anchored floating panel for lightweight contextual UI.
Installation
Section titled “Installation”npx bambiui add popover --framework reactnpx bambiui add popover --framework solidnpx bambiui add popover --framework sveltenpx bambiui add popover --framework vueimport { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, PopoverArrow } from "@/components/ui/popover";
export function Example() { return <Popover />;}import { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, PopoverArrow } from "~/components/ui/popover";
export function Example() { return <Popover />;}<script lang="ts"> import { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, PopoverArrow } from "$lib/components/ui/popover";</script>
<Popover /><script setup lang="ts">import { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, PopoverArrow } from "@/components/ui/popover";</script>
<template> <Popover /></template>Preview
Section titled “Preview”
Popover preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.
Behavior
Section titled “Behavior”Use for compact pickers, contextual controls, and supplementary content.
Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.
Accessibility
Section titled “Accessibility”Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Popover. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.
Exports
Section titled “Exports”Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, PopoverArrowTokens
Section titled “Tokens”Customize tokens after installing and previewing the component. Relevant tokens include:
--bambi-background--bambi-foreground--bambi-border