Composes InputLabel and passes an id to the first child to pair labels and controls automatically.

Select at least one choice, Name cannot be blank

Props

Themeable

Accepts Box props.

Use the field key in ThemeProvider to customize the default properties of this component.

childrenReactReactNode

Usually accepts form fields, such as input or select.

compactboolean

Renders label and field[s] smaller.

Controls distribution between fields, by passing this prop to StackView. (Defaults to “fill”.)

Helpful text to accompany fields.

helpContentstring | ReactReactNode

Renders content into a HelperDrawer next to label.

iconany

Places an icon to the left of the label.

inlineboolean

Renders label and field[s] inline.

innerRefReactRef

Gain access to the internal ref.

labelstring | ReactReactNode

Label that describes field[s].

labelBasisstring | number

Label flex basis.

Label color.

labelGrowstring | number

Label flex grow.

spacingnumber

Controls spacing between fields.

state'success' | 'error'

State of field[s].