reshaped

Reshaped Number field

Forms

About

Numeric input with increase/decrease controls and keyboard arrow support, based on TextField so it inherits its variants and sizes. Works in controlled and uncontrolled modes, supports icons, and integrates with the FormControl utility for labels and status messages.

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

Code

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

Usage.tsx

import { Reshaped } from "reshaped/bundle";
import NumberField from "@/components/ui/reshaped-number-field";

const HashIcon = () => (
  <svg
    viewBox="0 0 24 24"
    fill="none"
    stroke="currentColor"
    strokeWidth="2"
    strokeLinecap="round"
    strokeLinejoin="round"
  >
    <line x1="4" y1="9" x2="20" y2="9" />
    <line x1="4" y1="15" x2="20" y2="15" />
    <line x1="10" y1="3" x2="8" y2="21" />
    <line x1="16" y1="3" x2="14" y2="21" />
  </svg>
);

export default function Demo() {
  return (
    <Reshaped theme="slate">
      <div style={{ maxWidth: 320, width: "100%", margin: "0 auto", padding: 24 }}>
        <NumberField
          icon={<HashIcon />}
          name="amount"
          variant="faded"
          defaultValue={5}
          increaseAriaLabel="Increase value"
          decreaseAriaLabel="Decrease value"
        />
      </div>
    </Reshaped>
  );
}

Dependencies

More by reshaped

View all
  • Reshaped Toast

    Reshaped Toast

    12
  • Reshaped Calendar

    Reshaped Calendar

    10
  • Reshaped Progress indicator

    Reshaped Progress indicator

    8
  • Reshaped Context menu

    Reshaped Context menu

    8
  • Reshaped Checkbox

    Reshaped Checkbox

    8
  • Reshaped Autocomplete

    Reshaped Autocomplete

    8
  • Reshaped Slider

    Reshaped Slider

    7
  • Reshaped Pagination

    Reshaped Pagination

    7

More in Forms

View all
  • Premium Auth

    Premium Auth

    572
  • Login 1

    Login 1

    64
  • Contact Card

    Contact Card

    1.1K
  • Horizontal Form Fields

    Horizontal Form Fields

    8
  • Form

    Form

  • Contact Form

    Contact Form

    26
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52