Skip to content
Percentage field, light
Light
Percentage field, dark
Dark

Every state

  • Percentage field, default, light
    Percentage field, default, dark

    default

  • Percentage field, focus, light
    Percentage field, focus, dark

    focus

  • Percentage field, filled, light
    Percentage field, filled, dark

    filled

  • Percentage field, stepped, light
    Percentage field, stepped, dark

    stepped

  • Percentage field, at-max, light
    Percentage field, at-max, dark

    at-max

  • Percentage field, error, light
    Percentage field, error, dark

    error

  • Percentage field, disabled, light
    Percentage field, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"deposit-share"Input id; the label, description and error hang off it.
namestring"depositShare"Form field name.
labelstring"Deposit"Visible label.
descriptionstring–Help text under the label.
minnumber5Lowest percentage.
maxnumber50Highest percentage.
stepnumber0.5One step of the buttons and arrow keys; also how many decimals the field keeps.
defaultValuenumber20Starting percentage.
localestring"en-IE"Locale for the number format (12.5 or 12,5).
requiredboolean–Marks the field required.
disabledboolean–Disables the field and its buttons.
decreaseLabelstring"Decrease"Accessible name of the minus button.
increaseLabelstring"Increase"Accessible name of the plus button.
errorstring–An error from outside, shown until the value changes.
onValueChange(value: number | null) => void–The number after a step or when the field is left.
classNamestring–Extra classes on the outer Field.

More amount inputs

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