import { ChangeEvent } from 'react'; interface Props { /** Name for the input element */ name?: string; /** Boolean; if present and true, the toggle is currently swtiched on */ checked?: boolean; /** Boolean; the default toggle checked state */ defaultChecked?: boolean; /** Callback function, to be executed when user switch the toggle on/off */ onChange?: (_e: ChangeEvent) => void; /** A Boolean which, if true, disables the toggle */ disabled?: boolean; /** String representing information related to the toggle */ title?: string; /** Rest Props */ [rest: string]: any; } /** * Toggle component is a checkbox with switch-like shape and animation. * Commonly used for an option that can be turned on or off. */ declare const Toggle: ({ name, checked, defaultChecked, onChange, disabled, title, ...rest }: Props) => import("@emotion/react/jsx-runtime").JSX.Element; export default Toggle;