import { Canvas, Meta, ArgTypes } from '@storybook/blocks';
import { ThemeProvider } from 'styled-components';
import * as FormFieldStories from './FormField.stories.tsx';
import Checkbox from '../Checkbox';
import Flex from '../Flex';
import FormField from './';
import Input from '../Input';
import RadioGroup from '../RadioGroup';
import Select from '../Select';
import Textarea from '../Textarea';
import { lightTheme } from '../../../theme/';
import { GlobalStyles } from '../../../theme/GlobalStyles';
# FormField
The FormField component displays a single field in a form.
## Importing
```javascript
import { FormField } from 'amazon-chime-sdk-component-library-react';
```
## Example
### Input Field
With layout `stack` and `informational` text.
```jsx
{}}
layout="stack"
errorText="This is some error text"
error={false}
infoText="This is some informational text"
/>
```
With layout `horizontal` and `error` text.
```jsx
{}}
layout="horizontal"
errorText="This is some error text"
error={true}
infoText="This is some informational text"
/>
```
### Select Field
```jsx
{}}
value="react"
label="Select a framework"
layout="stack"
errorText="This is some error text"
error={false}
infoText="This is some informational text"
/>
```
### Textarea Field
```jsx
{}}
layout="horizontal"
errorText="This is some error text"
error={false}
infoText="This is some informational text"
/>
```
### Checkbox Field
```jsx
{}}
/>
{}}
/>
```
### Radio Group Field
```jsx
{}}
value="vue"
label="Select from the following"
errorText="This is some error text"
error
infoText="This is some informational text"
/>
```
## Props