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

Every state

  • Split amount, default, light
    Split amount, default, dark

    default

  • Split amount, focus, light
    Split amount, focus, dark

    focus

  • Split amount, custom, light
    Split amount, custom, dark

    custom

  • Split amount, left-to-assign, light
    Split amount, left-to-assign, dark

    left-to-assign

  • Split amount, over-total, light
    Split amount, over-total, dark

    over-total

  • Split amount, person-added, light
    Split amount, person-added, dark

    person-added

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

    filled-gbp

  • Split amount, jpy, light
    Split amount, jpy, dark

    jpy

  • Split amount, disabled, light
    Split amount, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"split"Id prefix for the fields.
namestring"split"Base form name: <name>-total, <name>-person-<n> and <name>-share-<n>.
totalLabelstring"Total to split"Label of the total field.
currencystring"EUR"Currency (ISO code); sets the symbol, its side and the decimals. JPY has none.
localestring"en-IE"Locale for Intl.NumberFormat.
defaultTotalnumber186.4Starting total.
defaultPeoplestring[]["Ana", "Ben", "Chloe"]Who or what the total is split over.
defaultSharesnumber[]–Starting shares, one per row; leave out for an equal split.
sharesLegendstring"Shares"Legend over the rows.
addLabelstring"Add person"Label of the add button.
equalLabelstring"Split equally"Label of the button that goes back to an equal split.
newPersonLabelstring"Person"Name a new row starts with, before its number.
disabledboolean–Disables the whole split.
onChange(value: { name: string; amount: number }[]) => void–Called when the split changes and the parts add up to the total.
classNamestring–Extra classes on the wrapper.

More amount inputs

All 6
amount-input-06 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