Back to Components
Inputs
Rating Input
Configurable rating input with star or heart icons, hover previews, and optional half steps.
Selected rating: 3.5
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/rating-input.tsx
Installation
Using shadcn CLI
npx shadcn add rating-input --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge