Pop Over

The Pop Over component displays floating contextual content when a trigger element is clicked.

Usage & Examples

Default

default.tsx

<PopOver
  asChild
  trigger={<Button size="small">Toggle Popover</Button>}
  content={
      "This is some helpful info shown in a popover."
  }
/>

Props API

21 props
Columns
Pop Over props API
Default
Description
aria-describedbystringNoariaAssociates the popover content with an external description element ID.
aria-labelstringNoariaAccessible label for the popover content region.
aria-labelledbystringNoariaAssociates the popover content with an external label element ID.
aria-modalbooleanNoariaWhether the popover should be announced as modal when role is dialog.
asChildbooleanNopropsfalseWhen true, the popover will clone the provided trigger element and attach popover behavior directly to it instead of wrapping it in an internal button.
classNamestringNostylingOptional additional class name(s) for custom styling.
contentReactNodeYespropsContent to be displayed inside the popover.
contentClassNamestringNopropsOptional additional class name(s) for the popover content element.
data-testidstringNotestingBackward-compatible alias for test ID attributes.
disabledbooleanNopropsfalseDisables interaction with the trigger and popover.
glassbooleanNopropsconfigured default glass setting (fallback: false)Adds translucent glass styling to the floating popover content.
idstringNopropsOptional ID for the popover content element.