Binhlaig UI Component
Popover
Displays rich content in an accessible popup anchored to a trigger.
Installation
Install Popover in your project.
Terminal
npx binhlaig-ui@latest add popoverFor project setup, installer selection, dependencies, and advanced installation instructions, see the Installation Guide.
View Installation Guide →Update or Overwrite →Import
Import Popover primitives from your UI directory.
import {
Popover,
PopoverClose,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/components/ui/popover"Usage
Use Popover for compact contextual content.
Form Popover
Place compact form controls inside the popover.
Open on Hover
Enable openOnHover and configure the delay.
Controlled State
Manage the open state from the parent component.
API Reference
Main components available in the Binhlaig UI Popover.
| Component | Purpose |
|---|---|
Popover | Controls the open state. |
PopoverTrigger | Opens the popover. |
PopoverContent | Renders the positioned popup. |
PopoverHeader | Groups title and description. |
PopoverTitle | Accessible title. |
PopoverDescription | Accessible description. |
PopoverClose | Closes the popover. |