# 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 Agentbunn pm npm

Open in Copy code

› Add the amount-pad component from Kokonut UI to this project with npx shadcn@latest add https://kokonutui.com/r/amount-pad.json, then show me how to use it.

lucide-react, motion

MC

Send to

Maya Chen@maya

$0

$0

Balance $3,204.18

$20 $50 $100

123456789.0

Enter an amount

PRONatural Date Input and more like it are in [Kokonut UI Pro](https://kokonutui.pro/?utm_source=kokonutui.com&utm_medium=pro-next-small&utm_content=natural-date-input)

## Installation

Amount Pad is a free, open-source React component in the Kokonut UI [Inputs collection](/content/docs/inputs/index.html). Add it with the shadcn CLI, which copies the source into `components/kokonutui/amount-pad.tsx`, so the code is yours to change.

Copy Text

```
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`.

Copy Text

```
npm install lucide-react motion
```

## Usage

Copy Text

```
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`

`string` Default `"$"`

Currency sign drawn before the amount.

`max`

`number` Default `2500`

Largest amount allowed in one go.

`balance`

`number` Default `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

| Needs | Version | Comes from |
| --- | --- | --- |
| `lucide-react` | `^0.556.0` | npm, installed by the CLI |
| `motion` | `^12.23.25` | npm, installed by the CLI |
| `cn` from `lib/utils.ts` |  | shadcn init |
| React | `19` | Your app |
| Tailwind CSS | `4` | Your app |

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