@buun_group/brutalist-ui
Version:
A brutalist-styled component library
15 lines (14 loc) • 612 B
TypeScript
/**
* @module Switch
* @description A toggle switch component for binary choices. Provides clear on/off states with smooth animations.
*/
import React, { InputHTMLAttributes } from 'react';
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
size?: 'sm' | 'md' | 'lg';
label?: React.ReactNode;
labelPosition?: 'left' | 'right';
loading?: boolean;
brutalistShadow?: boolean;
onCheckedChange?: (checked: boolean) => void;
}
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;