On this page
FormGroup
- Deprecated
- Not reviewed for accessibility
On this page
Adds styles for multiple form elements used together.
Deprecation
Use FormControl instead.
Default example
Component props
FormGroup
Name | Type | Default | Description |
---|---|---|---|
as | String | div | Sets the HTML tag for the component |
sx | SystemStyleObject | {} | Style to be applied to the component |
FormGroup.Label
Name | Type | Default | Description |
---|---|---|---|
as | String | label | Sets the HTML tag for the component |
htmlFor | String | The value of htmlFor needs to be the same as the id of the input it labels | |
sx | SystemStyleObject | {} | Style to be applied to the component |