FormGroup

  • Deprecated
  • Not reviewed for accessibility

Adds styles for multiple form elements used together.

Deprecation

Use FormControl instead.

Default example

Component props

FormGroup

NameTypeDefaultDescription
asStringdivSets the HTML tag for the component
sxSystemStyleObject{}Style to be applied to the component

FormGroup.Label

NameTypeDefaultDescription
asStringlabelSets the HTML tag for the component
htmlForStringThe value of htmlFor needs to be the same as the id of the input it labels
sxSystemStyleObject{}Style to be applied to the component