/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/OutlinedInput/outlinedInputClasses.ts
43 строки
2 KB
Albert Yu
[inputs] Remove deprecated props & classes (#48071)
24 мар 2026, 13:28
Не верифицирован
24 мар 2026, 13:28
954a8d2
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; import { inputBaseClasses } from '../InputBase'; export interface OutlinedInputClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if the color is secondary. */ colorSecondary: string; /** Styles applied to the root element if the component is focused. */ focused: string; /** Styles applied to the root element if `disabled={true}`. */ disabled: string; /** Styles applied to the root element if `startAdornment` is provided. */ adornedStart: string; /** Styles applied to the root element if `endAdornment` is provided. */ adornedEnd: string; /** State class applied to the root element if `error={true}`. */ error: string; /** Styles applied to the input element if `size="small"`. */ sizeSmall: string; /** Styles applied to the root element if `multiline={true}`. */ multiline: string; /** Styles applied to the NotchedOutline element. */ notchedOutline: string; /** Styles applied to the input element. */ input: string; /** Styles applied to the input element if `type="search"`. */ inputTypeSearch: string; } export type OutlinedInputClassKey = keyof OutlinedInputClasses; export function getOutlinedInputUtilityClass(slot: string): string { return generateUtilityClass('MuiOutlinedInput', slot); } const outlinedInputClasses: OutlinedInputClasses = { ...inputBaseClasses, ...generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']), }; export default outlinedInputClasses;