@bigbinary/neetoui
Version:
neetoUI drives the experience at all neeto products
21 lines (18 loc) • 529 B
TypeScript
import React from "react";
import { LabelProps } from "./Label";
export type SwitchProps = {
label?: string;
required?: boolean;
className?: string;
error?: string;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
checked?: boolean;
disabled?: boolean;
labelProps?: LabelProps;
children?: string;
} & React.DetailedHTMLProps<
React.InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
> & { [key: string]: any };
const Switch: React.ForwardRefExoticComponent<SwitchProps>;
export default Switch;