Skip to content

FormGroup

Alpha

Adds styles for multiple form elements used together.

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