Installation
npm install --save @types/react-star-rating-component
Summary
This package contains type definitions for react-star-rating-component (https://github.com/voronianski/react-star-rating-component#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-star-rating-component.
import * as React from "react";
interface StarRatingComponentProps {
name: string;
value: number;
starCount?: number | undefined;
onStarClick?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHover?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
onStarHoverOut?: ((nextValue: number, prevValue: number, name: string) => void) | undefined;
renderStarIcon?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
renderStarIconHalf?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
starColor?: string | undefined;
emptyStarColor?: string | undefined;
editing?: boolean | undefined;
}
declare class StarRatingComponent extends React.Component<
StarRatingComponentProps
> {}
export = StarRatingComponent;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Cody Sand.