ds-smart-ui
Version:
Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.
16 lines (15 loc) • 558 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;