Binhlaig logoBinhlaig UI
Components/Popover
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 popover

For 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.

ComponentPurpose
PopoverControls the open state.
PopoverTriggerOpens the popover.
PopoverContentRenders the positioned popup.
PopoverHeaderGroups title and description.
PopoverTitleAccessible title.
PopoverDescriptionAccessible description.
PopoverCloseCloses the popover.