

Every state


default


focus


once


other-open


other-filled


other-error


filled-gbp


jpy


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "gift" | Id prefix for the own-amount field. |
| name | string | "gift" | Base form name: <name>-frequency, <name>-amount and <name>-other. |
| frequencyLegend | string | "How often" | Legend of the once or monthly toggle. |
| onceLabel | string | "Once" | Label of the one-off option. |
| monthlyLabel | string | "Monthly" | Label of the monthly option. |
| amountLegend | string | "Amount" | Legend of the amount cards. |
| presets | number[] | [10, 25, 50, 100] | Preset amounts in whole units of the currency. |
| defaultAmount | number | "other" | 25 | The preset picked at the start, or "other". |
| defaultOtherAmount | number | – | Starting own amount. |
| defaultFrequency | "once" | "monthly" | "monthly" | The frequency picked at the start. |
| otherLabel | string | "Other" | Label of the own-amount card. |
| otherFieldLabel | string | "Your amount" | Label of the own-amount field. |
| minOther | number | 5 | Smallest own amount. |
| currency | string | "EUR" | Currency (ISO code); sets the symbol, its side and the decimals. JPY has none. |
| locale | string | "en-IE" | Locale for Intl.NumberFormat. |
| disabled | boolean | – | Disables every choice. |
| onChange | (value: { amount: number | null; frequency: "once" | "monthly" }) => void | – | Called on every choice; amount is null while the own amount is empty or too small. |
| className | string | – | Extra classes on the wrapper. |
More amount inputs
All 6amount-input-02 is in UI ProGet UI Pro, €199


