@buddhacognitivelab/theme-glassmorphic
Version:
Enhanced glassmorphic theme package with dual-mode support, advanced glass effects, interactive UI components, and gesture-based interactions
25 lines (24 loc) • 819 B
TypeScript
/**
* @fileoverview Glassmorphic Switch Component
* A toggle switch component with glassmorphic styling and smooth animations
*/
import React from 'react';
import type { GlassIntensity } from '../../types/theme';
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
/** Switch size */
size?: 'sm' | 'md' | 'lg';
/** Glass effect intensity */
glassIntensity?: GlassIntensity;
/** Switch state */
state?: 'default' | 'error' | 'warning' | 'success';
/** Label text */
label?: string;
/** Loading state */
loading?: boolean;
/** Custom className */
className?: string;
}
/**
* Glassmorphic Switch Component
*/
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;