sidiora-labs

Number Field

Forms

About

A numeric input with increment/decrement steppers and a draggable scrub area for quickly adjusting values like quantities, budgets, or settings.

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

Code

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

Usage.tsx

import {
  NumberField,
  NumberFieldDecrement,
  NumberFieldGroup,
  NumberFieldIncrement,
  NumberFieldInput,
  NumberFieldScrubArea,
  NumberFieldStepper,
} from "@/components/ui/number-field";
import { Label } from "@/components/ui/label";

export default function NumberFieldDemo() {
  return (
    <div className="flex flex-wrap items-end justify-center gap-8">
      <div className="grid gap-2">
        <Label>Seats</Label>
        <NumberFieldStepper defaultValue={4} min={1} max={50} />
      </div>
      <NumberField
        defaultValue={1280}
        step={10}
        format={{
          style: "currency",
          currency: "USD",
          maximumFractionDigits: 0,
        }}
        className="grid gap-2"
      >
        <NumberFieldScrubArea>
          <span className="text-[13px] font-medium">Budgetdrag me</span>
        </NumberFieldScrubArea>
        <NumberFieldGroup>
          <NumberFieldDecrement />
          <NumberFieldInput className="w-28" />
          <NumberFieldIncrement />
        </NumberFieldGroup>
      </NumberField>
    </div>
  );
}

Dependencies

More by sidiora-labs

View all
  • Preview Rail

    Preview Rail

    2
  • Expandable Tabs

    Expandable Tabs

    1
  • Morphing Modal

    Morphing Modal

    1
  • Not Found

    Not Found

  • Text Cascade

    Text Cascade

  • Smooth Scroll

    Smooth Scroll

  • Swap

    Swap

  • Motion Breadcrumb

    Motion Breadcrumb

More in Forms

View all
  • Premium Auth

    Premium Auth

    518
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    48
  • Form

    Form

    16
  • Login Card

    Login Card

    6
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K