@penaprieto/design-system
Version:
Multi-brand React design system with design tokens from Figma
27 lines • 816 B
TypeScript
import React from 'react';
import './Rating.css';
export type RatingSize = 'small' | 'medium' | 'large';
export interface RatingProps {
/** Valor del rating (0-max) */
value?: number;
/** Valor por defecto (no controlado) */
defaultValue?: number;
/** Número máximo de estrellas */
max?: number;
/** Tamaño del rating */
size?: RatingSize;
/** Solo lectura */
readOnly?: boolean;
/** Deshabilitado */
disabled?: boolean;
/** Permitir half stars */
allowHalf?: boolean;
/** Callback al cambiar el valor */
onChange?: (value: number) => void;
/** Mostrar el valor numérico */
showValue?: boolean;
/** Clase CSS adicional */
className?: string;
}
export declare const Rating: React.FC<RatingProps>;
//# sourceMappingURL=Rating.d.ts.map