Popover

ARIA
RTL

Popovers are perfect for floating panels with arbitrary content like navigation menus, mobile menus and flyout menus.

Based on Headless UI.

Popover

Anatomy

<Popover>
  <Popover.Trigger>...</Popover.Trigger>
  <Popover.Panel>...</Popover.Panel>
</Popover>

Default

Position

The complete list of all possible positions is in the props table below.

Trigger elements

With close button

Tooltip view example

Tooltip view example with always open state

This is the popover with arrow (tooltip)

Disable flip on component

Popover

NameTypeRequiredDefaultDescription
positiontop-start | top-end | bottom-start | bottom-end | right-start | right-end | left-start| left-end | top | bottom | right| leftNobottomSet placement for popover
autoPositionDisablebooleanNofalseDisable flip on component
Render Props:
openbooleanNo-Whether or not the popover is open.

Popover.Panel

NameTypeRequiredDefaultDescription
classNamestringNo-Tailwind classes for custom styles.
isStaticbooleanNo-Whether the component should be always open and ignore the internally managed open/closed state.
Render Props:
openbooleanNo-Whether or not the popover is open.
close() => voidNo-Closes the popover.