/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/FormControlLabel/formControlLabelClasses.ts
49 строк
2 KB
Siriwat K
[material-ui][FormControlLabel] Add missing `labelPlacementEnd` class (#48843)
22 июл 2026, 11:13
Не верифицирован
22 июл 2026, 11:13
7bd3762
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface FormControlLabelClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `labelPlacement="start"`. */ labelPlacementStart: string; /** Styles applied to the root element if `labelPlacement="end"`. */ labelPlacementEnd: string; /** Styles applied to the root element if `labelPlacement="top"`. */ labelPlacementTop: string; /** Styles applied to the root element if `labelPlacement="bottom"`. */ labelPlacementBottom: string; /** State class applied to the root element if `disabled={true}`. */ disabled: string; /** Styles applied to the label's Typography component. */ label: string; /** State class applied to the root element if `error={true}`. */ error: string; /** State class applied to the root element if `required={true}`. */ required: string; /** Styles applied to the asterisk element. */ asterisk: string; } export type FormControlLabelClassKey = keyof FormControlLabelClasses; export function getFormControlLabelUtilityClasses(slot: string): string { return generateUtilityClass('MuiFormControlLabel', slot); } const formControlLabelClasses: FormControlLabelClasses = generateUtilityClasses( 'MuiFormControlLabel', [ 'root', 'labelPlacementStart', 'labelPlacementEnd', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk', ], ); export default formControlLabelClasses;