/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/Step/stepClasses.ts
31 строка
958 B
Siriwat K
[material-ui] Use direct import from utils package (#40254)
20 дек 2023, 16:34
Не верифицирован
20 дек 2023, 16:34
7c2f0ca
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface StepClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `orientation="horizontal"`. */ horizontal: string; /** Styles applied to the root element if `orientation="vertical"`. */ vertical: string; /** Styles applied to the root element if `alternativeLabel={true}`. */ alternativeLabel: string; /** State class applied to the root element if `completed={true}`. */ completed: string; } export type StepClassKey = keyof StepClasses; export function getStepUtilityClass(slot: string): string { return generateUtilityClass('MuiStep', slot); } const stepClasses: StepClasses = generateUtilityClasses('MuiStep', [ 'root', 'horizontal', 'vertical', 'alternativeLabel', 'completed', ]); export default stepClasses;