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
| Prop | Type | Default | Description |
|---|---|---|---|
| data-rac-id | string | — | Data attribute for GTM purposes. Pass this property to add a custom id to the root element for GTM tracking. |
| data-testid | string | — | Data attribute for E2E testing purposes. |
| showArrow | boolean | — | Show the popover arrow. |
React Aria