FloatingToolbar API
import { FloatingToolbar } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
align | 'start' | 'center' | 'end' | |
anchorId | string | |
closeOnEscape | boolean | |
closeOnOutside | boolean | |
density | 'default' | 'compact' | 'comfortable' | |
elevation | 'default' | 'none' | 'low' | 'high' | |
offset | number | |
onClose | (detail: { reason?: string }) => void | |
onOpen | () => void | |
onOpenChange | (open: boolean, detail?: { reason?: string }) => void | |
onRequestClose | (detail: { reason: string }) => void | |
open | boolean | |
placement | 'auto' | 'top' | 'bottom' | |
shape | 'default' | 'square' | 'soft' | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'soft' | 'flat' | 'glass' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
FloatingToolbar.Toolbar props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-floating-toolbar>
FloatingToolbar renders the ui-floating-toolbar custom element from @editora/ui-core, which can also be used without React.
Attributes: align, anchor-id, aria-label, aria-labelledby, close-on-escape, close-on-outside, density, disabled, elevation, headless, offset, open, placement, shape, tone, variant
Events: change, close, open, request-close, ui-request-close