Money input

Core

A currency field with live grouping, stable width, rolling digits, and minor-unit output.

pnpm dlx shadcn@latest add https://wui.alann.works/r/money-input.json

API Reference

PropTypeDefault
label*stringrequired
hideLabelboolean—
valuenumber | null—
defaultValuenumber | null—
onValueChange(value: number | null, details: MoneyInputDetails) => void—
currencystring—
defaultCurrencystring—
onCurrencyChange(currency: string) => void—
currenciesstring[]—
minnumber—
maxnumber—
quickAddnumber[]—
stepnumber—
localestring—
descriptionstring—
errorstring—
disabledboolean—
namestring—
idstring—
classNamestring—
onBlur(event: ReactFocusEvent<HTMLInputElement>) => void—
Categories
inputs
Dependencies
lucide-reactmotion