Positioner API
import { Positioner } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
anchor | string | |
crossOffset | number | |
fitViewport | boolean | |
flip | boolean | |
headless | boolean | |
matchWidth | boolean | |
offset | number | |
onPositionChange | (detail: PositionerStateDetail) => void | |
open | boolean | |
placement | | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | |
shift | boolean | |
strategy | 'fixed' | 'absolute' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-positioner>
Positioner renders the ui-positioner custom element from @editora/ui-core, which can also be used without React.
Attributes: anchor, auto-placement, boundary-padding, cross-offset, dir, fit-viewport, flip, headless, hide-when-detached, inline, match-width, offset, open, placement, shift, strategy
Events: position-change