@types/react-star-ratings
TypeScript icon, indicating that this package has built-in type declarations

2.3.3 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/react-star-ratings

    Weekly Downloads

    10,397

    Version

    2.3.3

    License

    MIT

    Unpacked Size

    3.78 kB

    Total Files

    5

    Last publish

    Collaborators

    • types