Popover component
Figma Component
Popover can be used to display some content on top of another
Properties
Name | Description | Default |
---|---|---|
gap | Flexbox gap size | - |
trigger | Trigger node | - |
Note: This table does not include native DOM and React properties like `onClick`, `ref`, `id`, `aria-label` (and many others) supported by this component.
Placement
By default Popover comntent will display under the trigger element, this can be changed with the `placement` property
match Width
If `matchWidth` property is defined, the Popover component will match the width of the trigger element
fit On Screen
Define `maxHeight` or `maxWidth` properties to limit the Popover content size to available screen size
Popover Hook
An uncontrolled or optionally controlled popover can be created by using the `usePopover` hook. See Hooks - usePopover for more detailed documentation