vdk-components
Version:
React component library built with TypeScript and SCSS
29 lines (28 loc) • 605 B
TypeScript
import React from 'react';
export interface SwitchProps {
/**
* Whether the switch is checked
*/
checked?: boolean;
/**
* Whether the switch is disabled
*/
disabled?: boolean;
/**
* Whether the switch is in loading state
*/
loading?: boolean;
/**
* Label for the switch
*/
label?: string;
/**
* Callback when the switch state changes
*/
onChange?: (checked: boolean) => void;
/**
* Optional className for custom styling
*/
className?: string;
}
export declare const Switch: React.FC<SwitchProps>;