@bearlab/switch
Version:
Bearlab UI Switch Component
20 lines (17 loc) • 562 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { JSX } from 'react';
declare const Switch: (props: Props) => react_jsx_runtime.JSX.Element;
type InputProps = Omit<JSX.IntrinsicElements["input"], "popover">;
interface Props extends InputProps {
error?: any;
name?: string;
label?: string;
checked: boolean;
popover?: string;
disabled?: boolean;
className?: string;
isRequired?: boolean;
onChange: (_val: React.ChangeEvent<HTMLInputElement>) => void;
}
export { Switch };
export type { Props as SwitchProps };