Skip to content

Unstyled Form Control

The Unstyled Form Control component is a utility that lets you associate a form input with auxiliary components, such as labels, error indicators, or helper text.

FormControlUnstyled API

Import

import FormControlUnstyled from '@mui/base/FormControlUnstyled';
// or
import { FormControlUnstyled } from '@mui/base';
You can learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

NameTypeDefaultDescription
childrennode
| func
The content of the component.
componentelementType
The component used for the root node. Either a string to use a HTML element or a component.
disabledboolfalse
If true, the label, input and helper text should be displayed in a disabled state.
errorboolfalse
If true, the label is displayed in an error state.
requiredboolfalse
If true, the label will indicate that the input is required.
slotProps{ root?: func
| object }
{}
The props used for each slot inside the FormControl.
slots{ root?: elementType }{}
The components used for each slot inside the FormControl. Either a string to use a HTML element or a component. See Slots API below for more details.

The ref is forwarded to the root element.