alexisroe

Number Stepper

Component

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 NumberInputFloatValueDemo() {
  return (
    <div className="flex min-h-screen items-center justify-center bg-background p-10 text-foreground">
      <NumberInput
        label="Weight (kg)"
        useFloat
        min={0}
        max={5}
        defaultValue={0}
      />
    </div>
  );
}

More by alexisroe

View all
  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation

  • Pill

    Pill

  • Notification

    Notification

  • Log

    Log

  • Value Display

    Value Display

  • Last Updated

    Last Updated

  • List

    List