UNPKG

@onesy/ui-react

Version:
17 lines (16 loc) 505 B
import React from 'react'; import { IBaseElement, IRef, IElement } from '../types'; export declare type ISwitch = Omit<IBaseElement, 'onChange'> & { inputRef?: IRef; version?: any; valueDefault?: boolean; checkedDefault?: boolean; value?: boolean; checked?: boolean; onChange?: (value: boolean, event: React.ChangeEvent<any>) => any; colorUnchecked?: string; OnIcon?: IElement; OffIcon?: IElement; }; declare const Switch: React.FC<ISwitch>; export default Switch;