SelectionPopup API
import { SelectionPopup } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
anchorId | string | |
arrow | boolean | |
closeOnEscape | boolean | |
closeOnOutside | boolean | |
offset | number | |
onClose | () => void | |
onOpen | () => void | |
onOpenChange | (open: boolean) => void | |
open | boolean | |
placement | 'top' | 'bottom' | 'left' | 'right' | 'auto' | |
radius | 'none' | 'large' | 'full' | string | |
size | 'sm' | 'md' | 'lg' | |
strategy | 'fixed' | 'absolute' | |
tone | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'surface' | 'soft' | 'glass' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
SelectionPopup.Content props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-selection-popup>
SelectionPopup renders the ui-selection-popup custom element from @editora/ui-core, which can also be used without React.
Attributes: anchor-id, arrow, close-on-escape, close-on-outside, headless, offset, open, placement, radius, size, strategy, tone, variant