Skip to content
Storybook

Popover

Non-modal panel anchored to a trigger for rich hints, onboarding steps or small forms.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Usage

  • Popovers can hold interactive content; tooltips cannot.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

API reference

Class / attributeTypeDescription
data-px-popover + aria-controlsattributeTrigger.
px-popover · --floatingclassPanel.
__title · __desc · __meta · __actionsclassSlots.

Figma properties

Popover4 variants · page “Overlays”Open

Non-modal panel anchored to a trigger for rich hints, onboarding steps or small forms. Placement Bottom = popover below its trigger (arrow on top). Arrow sits at the inline-start edge, so it mirrors i…

PropertyTypeValues
TitleText“Invite your team”
DescriptionText“Collaborate on projects in real time. You can change permissions any time.”
MetaBoolean—
ActionsBoolean—
PlacementVariantBottom Top
DirectionVariantLTR RTL

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-popover-backgroundcolor-surface-overlay#ffffff
--px-popover-radiusradius-1616px
--px-popover-paddingspacing-1212px
--px-popover-width320px320px

Accessibility

  • Escape and outside click close it.