Skip to content
Amount presets, light
Light
Amount presets, dark
Dark

Every state

  • Amount presets, default, light
    Amount presets, default, dark

    default

  • Amount presets, focus, light
    Amount presets, focus, dark

    focus

  • Amount presets, preset-chosen, light
    Amount presets, preset-chosen, dark

    preset-chosen

  • Amount presets, own-amount, light
    Amount presets, own-amount, dark

    own-amount

  • Amount presets, error, light
    Amount presets, error, dark

    error

  • Amount presets, disabled, light
    Amount presets, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"amount"Id prefix; each preset is `${id}-${amount}`.
namestring"amount"Form field name; the chosen amount posts as one plain number.
legendstring"Choose an amount"The group's visible label.
descriptionstring–Help line under the legend.
presetsnumber[][10, 25, 50, 100]Preset amounts in whole currency units.
popularnumber25The preset marked "Most chosen".
defaultPresetnumber25The preset chosen at the start.
defaultOthernumber–An own amount shown at the start; chooses the other-amount card.
minnumber5Smallest own amount.
maxnumber1000Largest own amount.
currencystring"EUR"ISO currency code.
localestring"en-GB"Locale for the amount format.
disabledboolean–Disables every card and the input.
errorstring–An outside error message, e.g. from the server.
onValueChange(amount: number | null) => void–Called with the chosen amount, or null while the own amount is not valid.
classNamestring–Extra classes on the fieldset.

More choice cards

All 12
choice-card-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