| 50 | }; |
| 51 | |
| 52 | interface RatingStarsProps extends HTMLAttributes<HTMLDivElement> { |
| 53 | /** |
| 54 | * The rating to display. |
| 55 | * |
| 56 | * @default 5 |
| 57 | */ |
| 58 | rating?: number; |
| 59 | /** |
| 60 | * The number of stars to display. |
| 61 | */ |
| 62 | stars?: number; |
| 63 | /** |
| 64 | * The class name of the star icon. |
| 65 | */ |
| 66 | starClassName?: string; |
| 67 | } |
| 68 | |
| 69 | export const RatingStars = ({ rating = 5, stars = 5, starClassName, ...props }: RatingStarsProps) => { |
| 70 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected