Label API
import { Label } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
density | 'default' | 'compact' | 'comfortable' | |
description | string | |
disabled | boolean | |
for | string | |
headless | boolean | |
htmlFor | string | |
required | boolean | |
shape | 'default' | 'square' | 'soft' | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'surface' | 'soft' | 'contrast' | 'minimal' | 'elevated' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Label.Text props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Label.Description props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-label>
Label renders the ui-label custom element from @editora/ui-core, which can also be used without React.
Attributes: density, description, disabled, for, headless, required, shape, size, tone, variant
Events: blur, click, focus