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-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-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

  • clsx
  • lucide-react
  • react
  • tailwind-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

Browse this category