murad-sinatra

Number Field

Forms 1

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 NumberFieldDemo() {
  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="Quantity" defaultValue={2} min={0} max={12} />
      </div>
    </div>
  );
}

More by murad-sinatra

View all
  • Event Calendar

    Event Calendar

    3
  • Table

    Table

    2
  • Command Palette

    Command Palette

    1
  • Drawer

    Drawer

    1
  • Toggles

    Toggles

    1
  • Tooltip

    Tooltip

  • Popover

    Popover

  • Loaders

    Loaders

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • SignInPage

    SignInPage

    667