Popover API
import { Popover } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
closeOnEscape | boolean | |
closeOnOutside | boolean | |
elevation | 'none' | 'low' | 'high' | |
flip | boolean | |
offset | number | |
onClose | () => void | |
onOpen | () => void | |
onOpenChange | (detail: PopoverOpenChangeDetail) => void | |
open | boolean | |
placement | PopoverPlacement | |
radius | number | string | |
shift | boolean | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
tone | 'brand' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'surface' | 'soft' | 'solid' | 'glass' | 'contrast' | 'minimal' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Popover.Trigger props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Popover.Content props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-popover>
Popover renders the ui-popover custom element from @editora/ui-core, which can also be used without React.
Attributes: close-on-escape, close-on-outside, elevation, flip, offset, open, placement, radius, shift, size, tone, variant
Events: close, open, open-change