Popover

Last updated: October 14, 2026

Anchored popover for non-modal content with Motion enter animations and Base UI positioning.

Installation

npx smoothui-cli add popover

Features

  • Anchored to a trigger with configurable side and alignment
  • Spring fade/scale entrance via Motion
  • Controlled or uncontrolled open state
  • Compound parts (PopoverTrigger, PopoverContent, PopoverClose) for advanced layouts
  • Base UI by default; Radix twin available via style

Accessibility

Keyboard Interactions

KeyDescription
Enter / SpaceOpens the popover when the trigger is focused
EscapeCloses the popover and returns focus to the trigger
TabMoves focus into and through focusable content inside the popover

ARIA Attributes

AttributeElementPurpose
aria-expandedTriggerIndicates whether the popover is open
aria-haspopupTriggerIndicates the trigger opens a popup
role="dialog"ContentIdentifies the popover surface (when modal behavior applies)

Reduced Motion

This component respects prefers-reduced-motion via useReducedMotion from Motion. When reduced motion is preferred, fade and scale animations are disabled instantly.

Props

PopoverProps

Powered by

motion.dev
base-ui