Field
Composes labels, controls, descriptions, and validation messages into an accessible form row. Use it to keep form structure and feedback consistent.
React
Figma
Import
import { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle } from "@kela-systems/ui-components";This page has no live example yet. Storybook shows Field in every state and theme.
Props
Field
| Name | Default | Description |
|---|---|---|
orientation"vertical" | "horizontal" | "responsive" | "vertical" |
It also takes the attributes of the HTML element it renders.
FieldLabel
No props of its own. It also takes the attributes of the HTML element it renders.
FieldDescription
No props of its own. It also takes the attributes of the HTML element it renders.
FieldError
| Name | Default | Description |
|---|---|---|
errorsArray<{ message?: string } | undefined> |
It also takes the attributes of the HTML element it renders.
FieldGroup
No props of its own. It also takes the attributes of the HTML element it renders.
FieldLegend
| Name | Default | Description |
|---|---|---|
variant"legend" | "label" | "legend" |
It also takes the attributes of the HTML element it renders.
FieldSeparator
| Name | Default | Description |
|---|---|---|
childrenReact.ReactNode |
It also takes the attributes of the HTML element it renders.
FieldSet
No props of its own. It also takes the attributes of the HTML element it renders.
FieldContent
No props of its own. It also takes the attributes of the HTML element it renders.
FieldTitle
No props of its own. It also takes the attributes of the HTML element it renders.