Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@types/react-star-rating-component
Advanced tools
TypeScript definitions for react-star-rating-component
Weekly downloads
Readme
npm install --save @types/react-star-rating-component
This package contains type definitions for react-star-rating-component (https://github.com/voronianski/react-star-rating-component#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-star-rating-component.
import * as React from "react";
interface StarRatingComponentProps {
/** name of the radio input */
name: string;
/** the value of the star rating to display. i.e. the number of filled stars */
value: number;
/** number of icons in rating, default `5` */
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;
/** render method for the full-star icon */
renderStarIcon?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** render method for the half-star icon */
renderStarIconHalf?:
| ((
nextValue: number,
prevValue: number,
name: string,
) => React.ReactNode | string)
| undefined;
/** color of selected icons */
starColor?: string | undefined;
/** color of non-selected icons */
emptyStarColor?: string | undefined;
/** is component available for editing, default `true` */
editing?: boolean | undefined;
}
declare class StarRatingComponent extends React.Component<
StarRatingComponentProps
> {}
export = StarRatingComponent;
These definitions were written by Cody Sand.
FAQs
TypeScript definitions for react-star-rating-component
The npm package @types/react-star-rating-component receives a total of 1,913 weekly downloads. As such, @types/react-star-rating-component popularity was classified as popular.
We found that @types/react-star-rating-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.