alexisroe

Number Stepper

Forms 1

About

A labeled numeric stepper with decrease/increase buttons flanking a spinbutton value display, for picking a bounded quantity or decimal amount.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Number Stepper to your project and fits it to your theme.

Code

How Number Stepper is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import NumberInput from "@/components/ui/number-input";

export default function NumberInputDemo() {
  return (
    <div className="flex min-h-screen items-center justify-center bg-background p-10 text-foreground">
      <NumberInput label="Quantity" defaultValue={5} min={0} max={10} />
    </div>
  );
}