/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/TableSortLabel/tableSortLabelClasses.ts
31 строка
987 B
Siriwat K
[TablePagination][TableSortLabel] Remove deprecated props and classes (#48060)
23 мар 2026, 08:01
Не верифицирован
23 мар 2026, 08:01
0970365
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface TableSortLabelClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `direction="desc"`. */ directionDesc: string; /** Styles applied to the root element if `direction="asc"`. */ directionAsc: string; /** State class applied to the root element if `active={true}`. */ active: string; /** Styles applied to the icon component. */ icon: string; } export type TableSortLabelClassKey = keyof TableSortLabelClasses; export function getTableSortLabelUtilityClass(slot: string): string { return generateUtilityClass('MuiTableSortLabel', slot); } const tableSortLabelClasses: TableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', [ 'root', 'active', 'icon', 'directionDesc', 'directionAsc', ]); export default tableSortLabelClasses;