Skip to main content
Version: Next

FloatingToolbar API

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

Props​

PropTypeDescription
align'start' | 'center' | 'end'
anchorIdstring
closeOnEscapeboolean
closeOnOutsideboolean
density'default' | 'compact' | 'comfortable'
elevation'default' | 'none' | 'low' | 'high'
offsetnumber
onClose(detail: { reason?: string }) => void
onOpen() => void
onOpenChange(open: boolean, detail?: { reason?: string }) => void
onRequestClose(detail: { reason: string }) => void
openboolean
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