---
title: Form Item Layout
description: A helper component that provides a layout for form items.
component: true
fragment: true
---
## Usage
This component is to help with the layout of form items. It automatically provides `FormItem`, `FormLabel`, `FormMessage` and `FormDescription`.
The styling and layout of these components can be customized by passing in the components as props.
The components that can be replaced in `react-hook-form` atoms are highlighted below:
```tsx showLineNumbers {1-2,6-8}
UsernameThis is your public display name.
```
Using `FormItemLayout` it can look like this:
```tsx
```
Please note that you must still use `FormControl` to wrap input fields.
## Examples
## With Select component
## Horizontal layout
This is useful for forms inside a `` / `` component.
## With Switch component
## With Checkbox component
## List of items as Checkboxes
## Before label
You can insert any `React.Node` or string before the label using the `beforeLabel` prop.
## After label
You can insert any `React.Node` or string after the label using the `afterLabel` prop.