amotify
Version:
UI Component for React,NextJS,esbuild
29 lines (28 loc) • 896 B
TypeScript
/// <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<I> = React.FC<I>;
type FNs<I> = {
S: React.FC<I>;
R: React.FC<I>;
L: React.FC<I>;
};
}
type Methods = Methods.Component<Input> & Methods.FNs<Input>;
}
declare const Switch: Switch.Methods;
export { Switch, Switch as default };