Oros UI

Search documentation

Search Oros UI pages and components.

Popover

Displays contextual content in a floating panel.

Installation

Install Popover from Oros with shadcn CLI 4.13.0.

pnpm dlx shadcn@4.13.0 add @oros/popover

Usage

import {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/components/ui/popover"

Open the Source tab in the preview for a complete working example.

Anatomy

ExportResponsibility
PopoverThe root component that owns the primary structure and state.
PopoverContentContains the primary visible content.
PopoverDescriptionProvides supporting context for the current region.
PopoverHeaderGroups heading and introductory content.
PopoverTitleProvides the visible heading for the current region.
PopoverTriggerControls opening, selection, or disclosure behavior.

API Reference

Popover exports 6 named entries. Component exports accept the props of their underlying HTML element or Base UI component, plus an optional className, unless the source defines a more focused type.

  • Popover Component
  • PopoverContent Component
  • PopoverDescription Component
  • PopoverHeader Component
  • PopoverTitle Component
  • PopoverTrigger Component

Accessibility

  • Popover inherits focus management and keyboard support from Base UI; keep the provided trigger and content parts together.
  • Give icon-only triggers an accessible name, retain visible focus styles, and verify Escape and focus-return behavior in the final composition.

Source

Popover uses the standard shadcn API and is distributed through Oros. Installing it adds the component source and required dependencies to your app. The Source tab above shows a complete usage example.