Popover

A small overlay next to a trigger. Put exactly two children in it: one PopoverTrigger, then one PopoverContent. A click on the trigger opens and closes the content. Escape or a click outside closes it.

Examples

Loading examples…

Props

PropTypeDescription
openbooleanDefault false
showOnHoverboolean
hoverOpenDelaynumberMilliseconds before a hover opens it. Default 0

Slots

  • children · multiple

PopoverTrigger

The trigger of a Popover. Its children are the label of the trigger: a Text or an Icon. Do not put a Button in it, because the trigger is already a button.

Loading examples…

PropTypeDescription
blockbooleanFull width

Slots

  • children · multiple

PopoverContent

The body of a Popover. It shows only when the Popover is open.

Loading examples…

PropTypeDescription
side"top" | "bottom" | "left" | "right"Default "bottom"
sideOffsetnumberPixels between the trigger and the content. Default 6
align"start" | "center" | "end"Default "center"
widthnumber | string4px steps when a number

Slots

  • children · multiple

Link to Popover · All standard components