Skip to main content
Version: Next

BlockControls API

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

Props​

PropTypeDescription
activeIndexnumber
ariaLabelstring
childrenReact.ReactNode
density'compact' | 'comfortable'
disabledboolean
elevation'none' | 'low' | 'md' | 'high'
loopboolean
onNavigate(detail: BlockControlsNavigateDetail) => void
orientation'horizontal' | 'vertical'
radiusnumber | 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'
wrapboolean

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