Installation
npm install --save @types/react-stars
Summary
This package contains type definitions for react-stars (https://github.com/n49/react-stars).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-stars.
import * as React from "react";
interface ReactStarsProps {
className?: string | undefined;
count?: number | undefined;
value?: number | undefined;
char?: string | undefined;
color1?: string | undefined;
color2?: string | undefined;
size?: number | undefined;
edit?: boolean | undefined;
half?: boolean | undefined;
onChange?: ((new_rating: number) => void) | undefined;
}
declare class ReactStars extends React.Component<ReactStarsProps> {}
export default ReactStars;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by TingYuLC.