import React from "react"; import { LabelProps } from "./Label"; export type SwitchProps = { label?: string; required?: boolean; className?: string; error?: string; onChange?: React.ChangeEventHandler; checked?: boolean; disabled?: boolean; labelProps?: LabelProps; children?: string; } & React.DetailedHTMLProps< React.InputHTMLAttributes, HTMLInputElement > & { [key: string]: any }; const Switch: React.ForwardRefExoticComponent; export default Switch;