Form

Form is a component used to group multiple form elements.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Usage

import { Form } from "@yamada-ui/react"
<Form.Root>
  <Form.Header>
    <Form.Title />
    <Form.Description />
  </Form.Header>
  <Form.Body>
    <Form.Group />
  </Form.Body>
  <Form.Footer>
    <Form.SubmitButton />
  </Form.Footer>
</Form.Root>

Use props

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Change Variant

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Change Size

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Create an account

Create an account to get started.

Personal information
If not set, a password will be automatically generated.

Displaying a Helper Message

To display a helper message, set a {[key: string]: ReactNode} to helperMessage.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Displaying an Error Message

To display an error message, set a {[key: string]: ReactNode} to errorMessage.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Required

To make it required, set required to {[key: string]: boolean}.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Disable

To disable, set disabled to {[key: string]: boolean}.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Read-Only

To make it read-only, set readOnly to {[key: string]: boolean}.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Customize Required Indicator

To customize the required indicator, set requiredIndicator to ReactNode.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Use Optional Indicator

To use an optional indicator, set a ReactNode to optionalIndicator.

Create an account

Create an account to get started.

If not set, a password will be automatically generated.

Props