UNPKG

react-ts-rating-star

Version:

React TS Rating Star allows you to create a customizable rating star component with ease.

10 lines (9 loc) 454 B
import React from 'react'; import type { StarProps } from './types/types'; /** * Star component for displaying a single star. * @param props - The StarProps object containing the props for the Star component. * @returns JSX.Element representing the Star component. */ declare const Star: ({ currentStar, isActive, iconColor, iconWidth, iconHeight, fillPercentage, animationClassName, onClick, }: StarProps) => React.JSX.Element; export default Star;