Sean Hello

Number Field Form

Forms 3

About

A validated number input inside a form, built with react-hook-form and zod, showing an error message and a success toast when the amount is submitted.

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

Code

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

Usage.tsx

import NumberFieldForm from "@/components/ui/number-field-form";
import { Toaster } from "sonner";

export default function NumberFieldFormDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <NumberFieldForm />
      <Toaster />
    </div>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.4K
  • Line Charts 9

    Line Charts 9

    656
  • Alert

    Alert

    494
  • Line Charts 6

    Line Charts 6

    392
  • Area Charts 1

    Area Charts 1

    391
  • Scroll Area

    Scroll Area

    376
  • Navigation Menu

    Navigation Menu

    319
  • Area Charts 2

    Area Charts 2

    318

More in Forms

View all
  • Premium Auth

    Premium Auth

    525
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Form

    Form

    16
  • Login 1

    Login 1

    53
  • Book A Demo 3

    Book A Demo 3

    89
  • Login Card

    Login Card

    6
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48

Explore more

Part of ReUI — browse the full library on 21st.dev.