Section API
import { Section } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
density | 'compact' | 'comfortable' | |
inset | boolean | |
radius | 'none' | 'sm' | 'md' | 'lg' | 'xl' | |
size | 'small' | 'medium' | 'large' | |
tone | 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info' | |
variant | 'default' | 'surface' | 'muted' | 'outline' | 'elevated' | 'contrast' | 'gradient' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-section>
Section renders the ui-section custom element from @editora/ui-core, which can also be used without React.
Attributes: density, headless, inset, radius, size, tone, variant