{
/**
* The rating to display.
*
* @default 5
*/
rating?: number;
/**
* The number of stars to display.
*/
stars?: number;
/**
* The class name of the star icon.
*/
starClassName?: string;
}
export const RatingStars = ({ rating = 5, stars = 5, starClassName, ...props }: RatingStarsProps) => {
return (
{Array.from({ length: stars }).map((_, index) => (
))}
);
};