Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions docs/pages/base-ui/api/form-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"import { FormControl } from '@mui/base/FormControl';",
"import { FormControl } from '@mui/base';"
],
"slots": [
{
"name": "root",
"description": "The component that renders the root.",
"default": "'div'",
"class": "base-FormControl-root"
}
],
"classes": [
{
"key": "disabled",
Expand Down Expand Up @@ -52,12 +60,6 @@
"className": "base--required",
"description": "State class applied to the root element if `required={true}`.",
"isGlobal": true
},
{
"key": "root",
"className": "base-FormControl-root",
"description": "Class applied to the root element.",
"isGlobal": false
}
],
"spread": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"description": "State class applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>required={true}</code>"
},
"root": { "description": "Class applied to the root element." }
}
}
},
"slotDescriptions": { "root": "The component that renders the root." }
}
8 changes: 1 addition & 7 deletions packages/mui-base/src/FormControl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ export { FormControl } from './FormControl';

export { FormControlContext } from './FormControlContext';

export type {
FormControlProps,
FormControlRootSlotPropsOverrides,
FormControlState,
UseFormControlContextReturnValue,
FormControlOwnProps,
} from './FormControl.types';
export * from './FormControl.types';

export * from './formControlClasses';

Expand Down