Skip to content
ZikZuk UI

CurrencyInput

Stripe CurrencyField

An underline money field with the currency symbol on the digits' baseline. While typing it keeps exactly what was typed; on leaving it groups the digits (“1,50,000.00”), so the caret never jumps. The value is a plain number string.

pnpm add @zikzuk/ui
import { CurrencyInput } from "@zikzuk/ui";

An amount

Value: 150000

When to use

  • Any amount someone types: a top-up, a limit.

Props

PropTypeDescription
value / onChangestring / (value) => voidThe plain number string, e.g. "150000.5".
currencystring
Default "INR"
Picks the symbol and grouping.
…input propsInputHTMLAttributesid, name, disabled, aria-invalid…
classNamestringExtra classes on the outer element.