Skip to main content
Version: Next

Field API

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

Props​

PropTypeDescription
childrenReact.ReactNode
density'default' | 'compact' | 'comfortable'
descriptionstring
errorstring
headlessboolean
htmlForstring
invalidboolean
labelstring
labelWidthstring
orientation'vertical' | 'horizontal'
requiredboolean
shape'default' | 'square' | 'soft'
shell'none' | 'outline' | 'filled' | 'soft' | 'line'
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
variant'default' | 'surface' | 'outline' | 'soft' | 'contrast' | 'minimal' | 'elevated'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-field>​

Field renders the ui-field custom element from @editora/ui-core, which can also be used without React.

Attributes: density, description, error, for, headless, invalid, label, label-width, orientation, required, shape, shell, tone, variant