Quantity Stepper
Quantity Stepper: Inline minus / count / plus control for carts and forms. Clamps between min and max, disables at the edges. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Quantity Stepper
npx motion-ui-skill add quantity-stepper-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Quantity Stepper
Inline minus / count / plus control for carts and forms. Clamps between min and max, disables at the edges.
Install
npx motion-ui-skill add quantity-stepper-button
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { QuantityStepperButton } from "@/components/buttons/quantity-stepper-button";
export function QuantityStepperButtonDemo() {
return (
<div className="flex items-center justify-center p-6">
<QuantityStepperButton />
</div>
);
}
API Reference
QuantityStepperButton
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |