UNPKG

react-awesome-stars

Version:

A flexible and customizable star rating component for React applications

23 lines (20 loc) 610 B
import React from 'react'; interface StarRatingProps { rating?: number; maxRating?: number; interactive?: boolean; onRatingChange?: (rating: number) => void; size?: "xs" | "sm" | "md" | "lg" | "xl" | number; fillColor?: string; emptyColor?: string; hoverColor?: string; allowHalf?: boolean; showRating?: boolean; className?: string; showTooltip?: boolean; tooltipLabels?: string[]; animationDuration?: number; disabled?: boolean; } declare const StarRating: React.FC<StarRatingProps>; export { StarRating, StarRatingProps, StarRating as default };