ds-smart-ui
Version:
Smart UI is a React component library that helps you build accessible and responsive web applications.
17 lines (15 loc) • 559 B
TypeScript
import { FormColorTypes, FormSizeTypes } from '../../../types/form-types';
interface ToggleSwitchProps {
label?: string;
required?: boolean;
disabled?: boolean;
labelPosition?: "top" | "left" | "right";
size?: FormSizeTypes;
color?: FormColorTypes;
checked?: boolean;
defaultChecked?: boolean;
onChange?: (checked: boolean) => void;
id?: string;
}
declare const ToggleSwitch: import('react').ForwardRefExoticComponent<ToggleSwitchProps & import('react').RefAttributes<HTMLButtonElement>>;
export default ToggleSwitch;