- Components24
- Autocomplete
- Location Input
- Signature Input
- Signature Pad
- Credit Card
- Masked Input
- Color Picker
- Tag / Token Input
- Emoji Picker
- Transfer List
- Tree Select
- Image Upload / Dropzone
- Cron Expression Builder
- Inline Editable Field
- Sortable List Input
- Schedule / Availability Picker
- Phone Input
- Datetime Picker
- Smart Datetime Input
- File Upload
- Tags Input
- Multi Select
- Password Input
- Rating
Rating
Star, heart or thumbs-up rating input in three sizes.
Rating
Star, heart or thumbs-up rating input in three sizes.
Preview
Features
- Star, heart and thumbs-up icons.
- sm, md and lg sizes.
- Read-only mode for display.
Installation
npx shadcn@latest add https://www.shadcn-form.com/r/rating.json
The CLI installs every dependency listed in the registry item.
Usage
import { Rating } from '@/components/ui/rating'const [rating, setRating] = React.useState(3)<Rating value={rating} onChange={setRating} max={5} icon="star" size="md" />