Back to Components
Components
Quantity Selector
Numeric stepper with minus/plus buttons, number input, min/max limits, and disabled states.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/quantity-selector.tsx
Installation
Using shadcn CLI
npx shadcn add quantity-selector --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge