{ "componentDescription": "Provides context such as filled/focused/error/required for form inputs.\nRelying on the context provides high flexibility and ensures that the state always stays\nconsistent across the children of the `FormControl`.\nThis context is used by the following components:\n\n - FormLabel\n - FormHelperText\n - Input\n - InputLabel\n\nYou can find one composition example below and more going to [the demos](/material-ui/react-text-field/#components).\n\n```jsx\n\n Email address\n \n We'll never share your email.\n\n```\n\n⚠️ Only one `InputBase` can be used within a FormControl because it creates visual inconsistencies.\nFor instance, only one input can be focused at the same time, the state shouldn't be shared.", "propDescriptions": { "children": { "description": "The content of the component." }, "classes": { "description": "Override or extend the styles applied to the component." }, "color": { "description": "The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide." }, "component": { "description": "The component used for the root node. Either a string to use a HTML element or a component." }, "disabled": { "description": "If true, the label, input and helper text should be displayed in a disabled state." }, "error": { "description": "If true, the label is displayed in an error state." }, "focused": { "description": "If true, the component is displayed in focused state." }, "fullWidth": { "description": "If true, the component will take up the full width of its container." }, "hiddenLabel": { "description": "If true, the label is hidden. This is used to increase density for a FilledInput. Be sure to add aria-label to the input element." }, "margin": { "description": "If dense or normal, will adjust vertical spacing of this and contained components." }, "required": { "description": "If true, the label will indicate that the input is required." }, "size": { "description": "The size of the component." }, "sx": { "description": "The system prop that allows defining system overrides as well as additional CSS styles." }, "variant": { "description": "The variant to use." } }, "classDescriptions": { "fullWidth": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "fullWidth={true}" }, "marginDense": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "margin=\"dense\"" }, "marginNormal": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "margin=\"normal\"" }, "root": { "description": "Styles applied to the root element." } } }