Overview
MCP Server
Custom Shadcn Rating for React and Tailwind CSS. A customizable star rating component that supports read-only display and interactive input modes.
import { Rating } from "@/components/reui/rating"<Browse 9 production-ready Shadcn Rating components for dashboards, forms, and product UI. These examples follow the Radix UI implementation with accessible primitives from the Radix stack and stay fully compatible with Shadcn Create so radius, color, and typography match your configured theme.
Browse all 9 Shadcn Rating components for copy-ready layouts, dashboards, and forms built with Tailwind CSS in the ReUI library.
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
When to use
When not to use
Agent notes
editable Rating takes pointer clicks only: each star is a div with an onClick and no role, tab stop or key handlermaxRating to onRatingChange; a decimal rating draws a partial star but cannot be pickedstarClassName styles the showValue number, not the stars; recolor stars from className through the rating-star-filled slothttps://reui.io/docs/components/radix/rating.mdget_component("rating")npx shadcn@latest add @reui/ratingThe main component for displaying and editing star ratings.
import { Rating } from "@/components/reui/rating"
export function Pattern() {
return <Rating rating={4} />
}