UNPKG

1.51 kBTypeScriptView Raw
1export interface SwitchClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if `edge="start"`. */
5 edgeStart: string;
6 /** Styles applied to the root element if `edge="end"`. */
7 edgeEnd: string;
8 /** Styles applied to the internal `SwitchBase` component's `root` class. */
9 switchBase: string;
10 /** Styles applied to the internal SwitchBase component's root element if `color="primary"`. */
11 colorPrimary: string;
12 /** Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */
13 colorSecondary: string;
14 /** Styles applied to the root element if `size="small"`. */
15 sizeSmall: string;
16 /** Styles applied to the root element if `size="medium"`. */
17 sizeMedium: string;
18 /** State class applied to the internal `SwitchBase` component's `checked` class. */
19 checked: string;
20 /** State class applied to the internal SwitchBase component's disabled class. */
21 disabled: string;
22 /** Styles applied to the internal SwitchBase component's input element. */
23 input: string;
24 /** Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */
25 thumb: string;
26 /** Styles applied to the track element. */
27 track: string;
28}
29export type SwitchClassKey = keyof SwitchClasses;
30export declare function getSwitchUtilityClass(slot: string): string;
31declare const switchClasses: SwitchClasses;
32export default switchClasses;