BlockControls API
import { BlockControls } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
activeIndex | number | |
ariaLabel | string | |
children | React.ReactNode | |
density | 'compact' | 'comfortable' | |
disabled | boolean | |
elevation | 'none' | 'low' | 'md' | 'high' | |
loop | boolean | |
onNavigate | (detail: BlockControlsNavigateDetail) => void | |
orientation | 'horizontal' | 'vertical' | |
radius | number | string | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
state | 'idle' | 'loading' | 'error' | 'success' | |
tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'surface' | 'soft' | 'solid' | 'outline' | 'ghost' | 'floating' | 'minimal' | |
wrap | boolean |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-block-controls>
BlockControls renders the ui-block-controls custom element from @editora/ui-core, which can also be used without React.
Attributes: active-index, aria-label, density, disabled, elevation, headless, loop, no-loop, orientation, radius, size, state, tone, variant, wrap
Events: navigate, ui-navigate