A send money keypad. The amount grows as you type and the send button carries it.
FreeWeb and MobileMotion
Preview
npx shadcn add @fetaui/amount-padPlayground
Send toNoa LindqvistUSD
Balance $4,210.00
Failed
Send toInes ValeUSD
Balance $4,210.00
Disabled
Send toTheo MarshUSD
Balance $4,210.00
Icons animation
Disabled
Motion
Installation
Terminal· bash
npx shadcn add @fetaui/amount-pad
Accessibility
- The amount is an output with a spoken value.
- Keys are labelled buttons, and the note is a live status.
Motion
- Digits rise 12 px with a 4 px blur on a 520/30 spring, and commas slide into place.
- Going past the limit or a third decimal shakes the amount for 360 ms.
- Send walks Sending, Sent and back after 1.6 s.
- With reduced motion, digits appear and nothing shakes.
Responsive behavior
- A 360 px card on Web. Full width with taller keys on Mobile.
Performance
- Digits are keyed from the end, so only changed characters animate.
- Number grouping is memoized, and the reset timer after Sent is cleared on unmount.
Note for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Import
AmountPadfrom@/components/fetaui/amount-pad. It composesButton. onSendgets a number. Resolve to show Sent, reject to show Try again.limitonly guards the display. Check the amount and the balance on your server.- Set
to,initialsandnote, or the defaults show. The corner code followscurrency($ is USD, € is EUR), or setcurrencyName. The demo waits a timer and moves no money.
Related
Tip SelectorComponentA tape measure for tipping. Drag it under a fixed needle, or pick a chip.Input OTPComponentSeparate slots that behave like one input. Typing moves forward, paste fills every slot.Credit Top-upComponentBalance with runway and a 14 day trend, credit packs, a custom amount, auto top-up and Buy.Slide To ConfirmComponentDrag the thumb across to confirm. Past 90% or a fast flick, it commits.