UNPKG

872 BTypeScriptView Raw
1export interface SwitchClasses {
2 /** Class applied to the root element. */
3 root: string;
4 /** Class applied to the internal input element */
5 input: string;
6 /** Class applied to the track element */
7 track: string;
8 /** Class applied to the thumb element */
9 thumb: string;
10 /** State class applied to the root element if the switch is checked */
11 checked: string;
12 /** State class applied to the root element if the switch is disabled */
13 disabled: string;
14 /** State class applied to the root element if the switch has visible focus */
15 focusVisible: string;
16 /** Class applied to the root element if the switch is read-only */
17 readOnly: string;
18}
19export type SwitchClassKey = keyof SwitchClasses;
20export declare function getSwitchUtilityClass(slot: string): string;
21export declare const switchClasses: SwitchClasses;