murad-sinatra

Number Field

Forms

About

A numeric text input with plus/minus stepper buttons that clamps entered values to a min/max range and works controlled or uncontrolled.

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 from "@/components/ui/number-field";

export default function NumberFieldSmallDemo() {
  return (
    <div
      className="mors-scope"
      style={{
        background: "var(--mors-color-canvas)",
        color: "var(--mors-color-text)",
        padding: "2rem",
        display: "flex",
        justifyContent: "center",
      }}
    >
      <div style={{ maxWidth: 320, width: "100%" }}>
        <NumberField label="Small" size="sm" defaultValue={1} min={1} max={5} />
      </div>
    </div>
  );
}

More by murad-sinatra

View all
  • Event Calendar

    Event Calendar

    78
  • Table

    Table

    9
  • Drawer

    Drawer

    8
  • Mors Card

    Mors Card

    5
  • Toggles

    Toggles

    5
  • Combobox

    Combobox

    4
  • Command Palette

    Command Palette

    3
  • Token Field

    Token Field

    3

More in Forms

View all
  • Form

    Form

    10
  • Contact Form

    Contact Form

    33
  • Premium Auth

    Premium Auth

    616
  • Paper Plane

    Paper Plane

    113
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Onboarding Stepper

    Onboarding Stepper

    14
  • Input

    Input

    14