Umbra UI

Popover

A floating panel anchored to a trigger.

Staticimport { Popover } from 'umbra-ui'

Props

Popover

PropTypeDefaultDescription
children ReactNode—`PopoverTrigger` and `PopoverContent`.
defaultOpen booleanfalseInitial open state when uncontrolled.
modal booleanfalseTrap focus and block outside interaction while open.
onOpenChange ((open: boolean) => void)—Called when the popover opens or closes.
open boolean—Controlled open state.

PopoverContent

PropTypeDefaultDescription
arrow booleanfalseShows a small arrow pointing at the trigger.

Usage notes

For secondary content and small forms. Use Tooltip for text-only hints.

Accessibility

  • Focus moves into the panel on open and back to the trigger on close; Escape closes.
  • The trigger exposes aria-expanded and aria-controls.
  • Give the content an aria-label when it has no heading.

Import

import { Popover, PopoverContent } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app