Installation
npm install --save @types/react-star-ratings
Summary
This package contains type definitions for react-star-ratings (https://github.com/ekeric13/react-star-ratings).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-star-ratings.
index.d.ts
import * as React from "react";
interface StarRatingProps {
rating?: number;
numberOfStars?: number;
changeRating?: (rating: number) => void;
starRatedColor?: string;
starEmptyColor?: string;
starHoverColor?: string;
starDimension?: string;
starSpacing?: string;
gradientPathName?: string;
ignoreInlineStyles?: boolean;
svgIconPath?: string;
svgIconViewBox?: string;
name?: string;
}
declare class StarRatings extends React.Component<
StarRatingProps
> {}
export = StarRatings;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Andrew Shkurenko.