UNPKG

@unicity/design-system

Version:

A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support

46 lines 1.2 kB
import React from 'react'; import { SwitchProps as MuiSwitchProps } from '@mui/material'; export interface SwitchProps extends Omit<MuiSwitchProps, 'onChange'> { /** * The label for the switch */ label?: string; /** * Whether the switch is checked */ checked?: boolean; /** * Callback fired when the switch is toggled */ onChange?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void; /** * Whether the switch is disabled */ disabled?: boolean; /** * Whether the field has an error */ error?: boolean; /** * Helper text to display below the switch */ helperText?: string; /** * The size of the switch */ size?: 'small' | 'medium'; /** * The color of the switch */ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info'; /** * Whether the switch is required */ required?: boolean; /** * Position of the label relative to the switch */ labelPlacement?: 'start' | 'end' | 'top' | 'bottom'; } export declare const Switch: React.FC<SwitchProps>; //# sourceMappingURL=Switch.d.ts.map