---
title: Field
description: Used to add labels, help text, and error messages to form fields.
links:
source: components/field
storybook: components-field--basic
recipe: field
ark: https://ark-ui.com/react/docs/components/field
---
## Usage
```tsx
import { Field } from "@chakra-ui/react"
```
```tsx
```
:::info
If you prefer a closed component composition, check out the
[snippet below](#closed-component).
:::
## Examples
### Error Text
Pass the `invalid` prop to `Field.Root` and use the `Field.ErrorText` to
indicate that the field is invalid.
### Helper Text
Use the `Field.HelperText` to add helper text to the field.
### Horizontal
Use the `orientation="horizontal"` prop to align the label and input
horizontally.
### Disabled
Use the `disabled` prop to disable the field.
### Textarea
Here's how to use the field component with a textarea.
### Native Select
Here's how to use the field component with a native select.
### Required
Pass the `required` prop to `Field.Root` and use the `Field.RequiredIndicator`
to indicate that the field is required.
### Optional
Pass the `fallback` prop to the `Field.RequiredIndicator` to add optional text.
### Closed Component
Here's how to setup the Field for a closed component composition.
If you want to automatically add the closed component to your project, run the
command:
```bash
npx @chakra-ui/cli snippet add field
```
## Props
### Root