Skip to main content
Version: Next

Section API

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

Props​

PropTypeDescription
density'compact' | 'comfortable'
insetboolean
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