npm.io
2.3.3 • Published 2 years ago

@types/react-star-ratings

Licence
MIT
Version
2.3.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Andrew Shkurenko.