fui-fancyui
Version:
FancyUI Libary
18 lines (17 loc) • 675 B
TypeScript
import { TLayer } from '../../../types';
import { TComponentSizesMid } from '../../../types/TComponentSizes';
import { TUiColorsNotTransparent } from '../../../types/TUiColorsNotTransparent';
import { ReactNode } from 'react';
import { CSSProp } from 'styled-components';
export type TSwitch = {
checked?: boolean;
onChange?: (checked: boolean) => void;
disabled?: boolean;
sizeC?: TComponentSizesMid;
themeType?: TUiColorsNotTransparent;
layer?: TLayer;
icon?: ReactNode;
checkedIcon?: ReactNode;
externalStyle?: CSSProp;
};
export type TSwitchWithNativeAttrs = TSwitch & Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof TSwitch>;