UNPKG

awesome-gcl

Version:
20 lines (19 loc) 687 B
import { GSizeEnum } from "../types"; export type SwitchPropTypes = { size: GSizeEnum; checked: boolean; handleClick: () => void; label?: string; disabled?: boolean; additionalClasses?: SwitchAdditionalClasses; }; export type SwitchComponentsEnum = 'wrapper' | 'label' | 'switchWrapper' | 'input' | 'span'; export type SwitchSizeComponentsEnum = 'wrapper' | 'label' | 'switchWrapper' | 'span'; export type SwitchAdditionalClasses = { wrapper?: string[]; label?: string[]; switchWrapper?: string[]; input?: string[]; span?: string[]; }; export type SwitchConstructorPropTypes = Pick<SwitchPropTypes, 'size' | 'additionalClasses' | 'disabled'>;