Skip to content
Donation amount, light
Light
Donation amount, dark
Dark

Every state

  • Donation amount, default, light
    Donation amount, default, dark

    default

  • Donation amount, focus, light
    Donation amount, focus, dark

    focus

  • Donation amount, once, light
    Donation amount, once, dark

    once

  • Donation amount, other-open, light
    Donation amount, other-open, dark

    other-open

  • Donation amount, other-filled, light
    Donation amount, other-filled, dark

    other-filled

  • Donation amount, other-error, light
    Donation amount, other-error, dark

    other-error

  • Donation amount, filled-gbp, light
    Donation amount, filled-gbp, dark

    filled-gbp

  • Donation amount, jpy, light
    Donation amount, jpy, dark

    jpy

  • Donation amount, disabled, light
    Donation amount, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"gift"Id prefix for the own-amount field.
namestring"gift"Base form name: <name>-frequency, <name>-amount and <name>-other.
frequencyLegendstring"How often"Legend of the once or monthly toggle.
onceLabelstring"Once"Label of the one-off option.
monthlyLabelstring"Monthly"Label of the monthly option.
amountLegendstring"Amount"Legend of the amount cards.
presetsnumber[][10, 25, 50, 100]Preset amounts in whole units of the currency.
defaultAmountnumber | "other"25The preset picked at the start, or "other".
defaultOtherAmountnumber–Starting own amount.
defaultFrequency"once" | "monthly""monthly"The frequency picked at the start.
otherLabelstring"Other"Label of the own-amount card.
otherFieldLabelstring"Your amount"Label of the own-amount field.
minOthernumber5Smallest own amount.
currencystring"EUR"Currency (ISO code); sets the symbol, its side and the decimals. JPY has none.
localestring"en-IE"Locale for Intl.NumberFormat.
disabledboolean–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.
classNamestring–Extra classes on the wrapper.

More amount inputs

All 6
amount-input-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans