Skip to content

FormGroup

  • Deprecated
  • Review pending by accessibility team

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
Edit this page on GitHub
2 contributorsmperrotticolebemis
Last edited by mperrotti on March 16, 2022