UNPKG

@papernote/ui

Version:

A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive

14 lines 564 B
export interface SwitchProps { checked: boolean; onChange: (checked: boolean) => void; label?: string; description?: string; disabled?: boolean; /** Size variant - 'lg' provides better touch targets. On mobile, 'md' auto-upgrades to 'lg'. */ size?: 'sm' | 'md' | 'lg'; /** Show loading spinner (disables interaction) */ loading?: boolean; } declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLInputElement>>; export default Switch; //# sourceMappingURL=Switch.d.ts.map