Skip to content
nexubDesign System
v2.4.0

Components · Overlays

Popover

StableSince v0.0.1

Floating content panel anchored to a trigger element.

import { Popover } from '@nexub/react';

Examples

Default

With close button

Props

Props
PropTypeDefaultDescription
Popover.Rootcompound—Root provider that manages open/close state.
Popover.Triggercompound—Element that toggles the popover on click.
Popover.Contentcompound—The floating content panel.
Popover.Arrowcompound—Optional arrow pointing to the trigger.
Popover.Closecompound—Button that closes the popover.
side'top' | 'right' | 'bottom' | 'left'—Preferred side of the trigger to render the content.
align'start' | 'center' | 'end'—Alignment of the content relative to the trigger.
sideOffsetnumber—Distance in pixels between the trigger and the content.
surface'solid' | 'glass''solid'Glass material on Popover.Content — see Foundations → Materials.

On iOS & Android