UNPKG

@mui/joy

Version:

Joy UI is an open-source React component library that implements MUI's own design principles. It's comprehensive and can be used in production out of the box.

51 lines (50 loc) 2.18 kB
export interface SwitchClasses { /** Class name applied to the root element. */ root: string; /** State class applied to the root `checked` class. */ checked: string; /** State class applied to the root disabled class. */ disabled: string; /** Class name applied to the action element. */ action: string; /** Class name applied to the input element. */ input: string; /** Class name applied to the input element. */ thumb: string; /** Class name applied to the track element. */ track: string; /** State class applied to the root element if the switch has visible focus */ focusVisible: string; /** Class name applied to the root element if the switch is read-only */ readOnly: string; /** Class name applied to the root element if `color="primary"`. */ colorPrimary: string; /** Class name applied to the root element if `color="danger"`. */ colorDanger: string; /** Class name applied to the root element if `color="success"`. */ colorSuccess: string; /** Class name applied to the root element if `color="warning"`. */ colorWarning: string; /** Class name applied to the root element when color inversion is triggered. */ colorContext: string; /** Class name applied to the root element if `size="sm"`. */ sizeSm: string; /** Class name applied to the root element if `size="md"`. */ sizeMd: string; /** Class name applied to the root element if `size="lg"`. */ sizeLg: string; /** Class name applied to the root element if `variant="outlined"`. */ variantOutlined: string; /** Class name applied to the root element if `variant="soft"`. */ variantSoft: string; /** Class name applied to the root element if `variant="solid"`. */ variantSolid: string; /** Class name applied to the startDecorator element. */ startDecorator: string; /** Class name applied to the endDecorator element. */ endDecorator: string; } export type SwitchClassKey = keyof SwitchClasses; export declare function getSwitchUtilityClass(slot: string): string; declare const switchClasses: SwitchClasses; export default switchClasses;