forked from mui/material-ui
/
listItemClasses.ts
30 lines (25 loc) · 913 Bytes
/
listItemClasses.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { generateUtilityClass, generateUtilityClasses } from '../className';
export interface ListItemClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the component element if `startAction` element is provided. */
startAction: string;
/** Styles applied to the component element if `endAction` element is provided. */
endAction: string;
/** Styles applied to the root element, if nested={true}. */
nested: string;
/** Styles applied to the root element, if sticky={true}. */
sticky: string;
}
export type ListItemClassKey = keyof ListItemClasses;
export function getListItemUtilityClass(slot: string): string {
return generateUtilityClass('JoyListItem', slot);
}
const listItemClasses: ListItemClasses = generateUtilityClasses('JoyListItem', [
'root',
'startAction',
'endAction',
'nested',
'sticky',
]);
export default listItemClasses;