Popover
Popovers are similar to tooltips. They are small overlays that open on demand after a user interaction. The difference is that the popover can contain more content, without cluttering the page. They must be specified inside the overlay
prop of an activator component (Button
, Link
or Pressable
).
The library automatically applies the WAI-ARIA Popover Widget pattern to both the activator and the popover content.
Anchor to popoverpropsPopoverProps
Align the Popover in the axis determined by the position.
A unique identifier for the component.
Adjust the maximum inline size.
number
: size in pixels.
`${number}%`
: size in percentages.
fill
: takes all the available space.
Adjust the minimum inline size.
number
: size in pixels.
`${number}%`
: size in percentages.
fill
: takes all the available space.\
Callback to run when the Popover is closed
Callback to run when the Popover is opened
Adjust the padding.
To shorten the code, it is possible to specify all the padding properties in one property.
Examples:
base
means blockStart, inlineEnd, blockEnd and inlineStart paddings arebase
[
base
,none
] means blockStart and blockEnd paddings arebase
, inlineStart and inlineEnd paddings arenone
[
base
,none
,loose
,tight
] means blockStart padding isbase
, inlineEnd padding isnone
, blockEnd padding isloose
and blockStart padding istight
Position the Popover relative to the activator.
Basic Popover
Preview

Anchor to best-practicesBest Practices
Use popovers if:
The intent is to ask the customer for information.
It’s possible to use at most two rows of input fields to get the information.