@penaprieto/design-system
Version:
Multi-brand React design system with design tokens from Figma
14 lines • 571 B
TypeScript
import React from 'react';
import './Switch.css';
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> {
/** Label visible del switch */
label?: React.ReactNode;
/** Descripción opcional debajo del label */
description?: React.ReactNode;
/** Estado de error para estilos */
error?: boolean;
/** Callback de cambio explícito */
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
}
export declare const Switch: React.FC<SwitchProps>;
//# sourceMappingURL=Switch.d.ts.map