Skip to main content
Version: Next

FieldSemantics API

import { Description, FieldError, ControlGroup, Fieldset } from '@editora/ui-react';

Description props​

PropTypeDescription
childrenReact.ReactNode
forstring
htmlForstring
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
variant'default' | 'soft' | 'surface'

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

FieldError props​

PropTypeDescription
activeboolean
childrenReact.ReactNode
forstring
htmlForstring
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
variant'default' | 'soft'

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

ControlGroup props​

PropTypeDescription
childrenReact.ReactNode
density'default' | 'compact' | 'comfortable'
labelstring
orientation'vertical' | 'horizontal'
variant'default' | 'soft' | 'surface'

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

Fieldset props​

PropTypeDescription
childrenReact.ReactNode
density'default' | 'compact' | 'comfortable'
descriptionstring
errorstring
headlessboolean
invalidboolean
legendstring
orientation'vertical' | 'horizontal'
requiredboolean
shape'default' | 'square' | 'soft'
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
variant'default' | 'surface' | 'outline' | 'soft' | 'contrast'

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