Components · Form & Input
An amount field: locale-aware parsing as you type, grouped on blur, the currency symbol leading.
import { Money Input } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| currency | string | — | ✓ | ISO 4217 code, e.g. "EUR". |
| locale | string | — | — | BCP 47 locale for separators. Defaults to the user's. |
| value / defaultValue | number | null | — | — | The amount, or null when empty. |
| onValueChange | (value: number | null) => void | — | — | Parsed amount, rounded to the minor unit, as the person types. |