Form
Form component is a grouping of input controls that allow a user to submit information to a server.
You can set the size prop for Form and this size will be applied to all children's components.
You can set disabled and error props prop for Form.Item and this props will be applied to all children's.
Anatomy
<Form> <Form.Item>...</Form.Item> </Form>
Form example
Form example with InsetInput
Form
Name | Type | Required | Default | Description |
---|---|---|---|---|
size | sm | md | lg | No | - | Size |
className | string | No | - | Tailwind classes for customization |
Form.Item
Name | Type | Required | Default | Description |
---|---|---|---|---|
disabled | boolean | No | - | Set disabled/non-disabled |
error | boolean | No | - | Set valid/non-valid |
size | sm | md | lg | No | - | Size |
className | string | No | - | Tailwind classes for customization |