Forms
MoneyInput
A decimal string, never a JS number.
@codeways/ui/money-input
States
Money is a string everywhere in the suite, never a JS number - no float rounding, ever.
with currency select
fixed currency (no select)
no currency
invalid
disabled
Usage
import { MoneyInput } from "@codeways/ui/money-input";
<MoneyInput value={amount} onChange={setAmount} currency={currency} onCurrencyChange={setCurrency} />