A customizable star rating component that supports read-only display and interactive input modes.
import { Rating } from '@/components/ui/rating'; export default function RatingSizeDemo() { return ( <div className="flex flex-col items-center gap-4"> <Rating rating={4} size="sm" /> <Rating rating={4} /> <Rating rating={4} size="lg" /> </div> ); }
Part of ReUI — browse the full library on 21st.dev.