[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Field

# Function: Field()

> **Field**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/headless.ts:802](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/headless.ts#L802)

Accessibility glue around a single control: wraps a label, the control, an optional
description, and an error, wiring `for`/`id`/`aria-describedby` and keeping `aria-invalid`
in sync with the error. Compose `<Label>`/`<Description>` manually or pass them as props.

## Parameters

### props

[`FieldProps`](../interfaces/FieldProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Example

```tsx
<Field label="Email" description="We never share it." error={this.errors.email}>
  <input value={this.form.email} />
</Field>
```
