Star rating input and display.
import { Rating } from "@/components/ui";<Rating value={3} />Available in multiple sizes
<div className="space-y-2"> <Rating size="sm" value={4} /> <Rating size="md" value={4} /> <Rating size="lg" value={4} /></div>Allow user to set rating
const [rating, setRating] = useState(0);return ( <Rating value={rating} onChange={setRating} max={5} />);Allow half-star ratings
<Rating value={3.5} allowHalf onChange={(value) => console.log(value)}/>Display-only rating
<Rating value={4.5} readonly allowHalf />Change the maximum stars
<Rating value={7} max={10} />Configure your app with the features you need and download production-ready code.
Start Configuring