Skip to content
nexubDesign System
v2.4.0

Components · Form & Input

Money Input

BetaSince v1.5.0

An amount field: locale-aware parsing as you type, grouped on blur, the currency symbol leading.

import { MoneyInput } from '@nexub/react';

Examples

Default

German separators

Props

Props
PropTypeDefaultDescription
currencyrequiredstring—ISO 4217 code, e.g. "EUR".
localestring—BCP 47 locale for separators. Defaults to the user's.
value / defaultValuenumber | null—The amount, or null when empty.
onValueChange(value: number | null) => void—Parsed amount, rounded to the minor unit, as the person types.