UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

29 lines (28 loc) 892 B
/// <reference types="react" /> import { Themecolor, ReactElement } from '../../@declares'; import { InputTypes } from '.'; declare namespace Switch { type Size = 'small' | 'regular' | 'large'; type Input = InputTypes.UniInput<boolean> & React.DOMAttributes<HTMLInputElement> & { color?: Color; id?: string; tabIndex?: number; size?: Size; isApply?: boolean; disabled?: boolean; value?: boolean; icon?: ReactElement; }; type Color = Themecolor | 'theme' | 'posi' | 'nega' | 'warn'; namespace Methods { type Component = React.FC<Input>; type FNs = { S: React.FC<Input>; R: React.FC<Input>; L: React.FC<Input>; }; } type Methods = Methods.Component & Methods.FNs; } declare const Switch: Switch.Methods; export { Switch, Switch as default };