
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
next-rating-component
Advanced tools
A react rating component with support of NextJS SSR and Fractional Step
@siamf/rating@siamf/rating instead.This package is no longer maintained. For the latest updates and improvements, migrate to:
I've been searching for a reliable React rating component for Next.js with server-side rendering (SSR) support and essential features like fractional ratings. After trying several existing libraries over the past five days, I've found that many either don't work well with SSR, lack crucial functionality, or don't support fractions. Therefore, I've decided to build my own customizable rating component in TypeScript to meet common project needs.
See Live Demo
$ npm i next-rating-component
"use client"
import { useState } from "react";
import { Rating } from "next-rating-component";
const MyComponent = () => {
const [rating, setRating] = useState<number>(0);
return (
<div>
<Rating
value={rating}
onChange={(e) => setRating(e)}
fractions={0.1}
/>
</div>
);
};
export default MyComponent;
| Name | Description | Type | Default/Required |
|---|---|---|---|
| maxRating | Rating star count | number | 5 |
| value | The value of rating (You can use Rating component with controls using this value prop) | number | Required |
| icon | Change the icon of Rating Component (Only SVG Icon supported) | React Element | Optional |
| fractions | Fractional Step For Icon | number | 1 |
| onChange | The new rating value when clicked | (newRating)=> void | Optional |
| onHover | The new rating value when hovered | (newRating)=> void | ease |
| readOnly | The interactivity of the icon | boolean | false |
| Size | The Size of the Icon | number | 24 |
| emptyColor | The color of the empty Icon | string | #dfe2e6 |
| fillColor | The color of the fill Icon | string | #fab005 |
| toolTip | For showing tooltip | boolean | false |
| customTooltip | Custom tooltip for every step. Here step will 2 decimal position number for each step | {step:number, text:string}[] | optional |
FAQs
A react rating component with support of NextJS SSR and Fractional Step
The npm package next-rating-component receives a total of 3 weekly downloads. As such, next-rating-component popularity was classified as not popular.
We found that next-rating-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.