
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@types/react-star-rating-component
Advanced tools
TypeScript definitions for react-star-rating-component
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
We found that @types/react-star-rating-component demonstrated a not healthy version release cadence and project activity because the last version was released 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.