Field

Composes labels, controls, descriptions, and validation messages into an accessible form row. Use it to keep form structure and feedback consistent.

React

Ready

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

NameDefaultDescription
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

NameDefaultDescription
errors
Array<{ 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

NameDefaultDescription
variant
"legend" | "label"
"legend"

It also takes the attributes of the HTML element it renders.

FieldSeparator

NameDefaultDescription
children
React.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.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.