Skip to Content
Kokonut UI

IN-10InputsNew, October 21, 2026

Amount Pad

A keypad for sending money. Digits spring into place, commas slide them along, and the amount shrinks to fit as it grows.

Install with
lucide-react, motion

PRONatural Date Input and more like it are in Kokonut UI Pro

Installation

Amount Pad is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/amount-pad.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/amount-pad

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/amount-pad.tsx.

npm install lucide-react motion

Usage

import AmountPad from "@/components/kokonutui/amount-pad";

export default function Example() {
  return <AmountPad />;
}

Props

recipient
{ name: string; handle?: string }Default { name: "Maya Chen", handle: "@maya" }

Who the money goes to.

currency
stringDefault "$"

Currency sign drawn before the amount.

max
numberDefault 2500

Largest amount allowed in one go.

balance
numberDefault 3204.18

Shown under the amount until you hit the cap.

presets
number[]Default [20, 50, 100]

One-tap amounts.

onSend
(amount: number) => void
className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.