# Field

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

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-field--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/field), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=18684-15122)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Field

| Variant | Values | Default |
| --- | --- | --- |
| `orientation` | `vertical`, `horizontal`, `responsive` | `vertical` |

Also takes the attributes of the HTML element it renders.

### FieldLabel

Also takes the attributes of the HTML element it renders.

### FieldDescription

Also takes the attributes of the HTML element it renders.

### FieldError

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `errors` | `Array<{ message?: string } \| undefined>` |  |  |

Also takes the attributes of the HTML element it renders.

### FieldGroup

Also takes the attributes of the HTML element it renders.

### FieldLegend

| Variant | Values | Default |
| --- | --- | --- |
| `variant` | `legend`, `label` | `legend` |

Also takes the attributes of the HTML element it renders.

### FieldSeparator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `React.ReactNode` |  |  |

Also takes the attributes of the HTML element it renders.

### FieldSet

Also takes the attributes of the HTML element it renders.

### FieldContent

Also takes the attributes of the HTML element it renders.

### FieldTitle

Also takes the attributes of the HTML element it renders.
