Skip to main content
Version: Next

SelectionPopup API

import { SelectionPopup } from '@editora/ui-react';

Props​

PropTypeDescription
anchorIdstring
arrowboolean
closeOnEscapeboolean
closeOnOutsideboolean
offsetnumber
onClose() => void
onOpen() => void
onOpenChange(open: boolean) => void
openboolean
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