import React , { ReactNode } from 'react' ; import { Input } from '../Input/Input' ; import { withIris , IrisInputProps } from '../../../utils' ; export const Toggle = withIris < HTMLInputElement , Props > ( ToggleComponent ) ; export type Props = IrisInputProps < { icon ? : ReactNode ; /**
     * [default = 'md']
     */ size ? : 'sm' | 'md' | 'lg' | 'xl' ; } , HTMLInputElement > ; function ToggleComponent ( props ) { return < Input type = "toggle" { ... props } />; }