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
  • Table

    Table

  • Command Palette

    Command Palette

  • Tooltip

    Tooltip

  • Popover

    Popover

  • Loaders

    Loaders

  • Mors Card

    Mors Card

  • Swatch

    Swatch

  • Divider

    Divider

More in Forms

View all
  • Premium Auth

    Premium Auth

    517
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Authentication Card

    Authentication Card

    48
  • Login 1

    Login 1

    52
  • Login Card

    Login Card

    6
  • Form

    Form

    16
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K