UNPKG

@nowt/rating

Version:

A modern, premium-looking `Rating` component built with React.

20 lines (19 loc) 523 B
import React from 'react'; interface RatingProps { value?: number; max?: number; onChange?: (rating: number) => void; size?: number; color?: string; activeColor?: string; readonly?: boolean; allowHalf?: boolean; className?: string; emoji?: string; tooltip?: boolean; theme?: 'default' | 'cosmic' | 'neon' | 'futuristic' | 'minimal'; animation?: boolean; glowIntensity?: 'low' | 'medium' | 'high'; } declare const Rating: React.FC<RatingProps>; export default Rating;