Command Palette

Search for a command to run...

Components · Complex component

Popover

Popover is a an overlay element that floats around its disclosure. It's commonly used for displaying additional rich content on top of something. Or is used to construct menus, comboboxes, selectcs and other floating UI.

Usage

TSX
import { Popover } from '@console/nimbus-ui/core';

Examples

Placement

Use the placement prop to control where the Popover will appear in relation to the trigger element. The default value is bottom.

Show Arrow

Use the showArrow prop to display an arrow pointing to the trigger element. The arrow will be positioned based on the placement prop of the Popover.

API

PropTypeDefaultDescription
data-rac-idstring—Data attribute for GTM purposes. Pass this property to add a custom id to the root element for GTM tracking.
data-testidstring—Data attribute for E2E testing purposes.
showArrowboolean—Show the popover arrow.