Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    AmountInput

    An amount of money typed in the Provider language and reported in exact minor units, never a float.

    Storybook
    Storybook
    Source
    Source
    State Look Tokens
    Default Input border, subtle currency color-border-input, color-text-subtle
    Focus Focus border and ring, dark currency color-border-focus, color-text-default
    Error Danger border and message color-border-danger
    Disabled Disabled surface color-surface-disabled
    Property Value Token
    Height 32 / 36 / 40 px input-height-sm, input-height-md, input-height-lg
    Inline padding 12 px input-padding-inline

    Values are shown for the selected brand; switch brands from the top bar.

    TokenSampleLight modeDark mode
    --bigbang-input-height-md36px36px36px36px36px36px
    --bigbang-input-height-lg40px40px40px40px40px40px
    --bigbang-input-padding-inline12px12px12px12px12px12px
    --bigbang-color-border-input#8c8c8c#8c8c8c#8c8c8c#737373#737373#737373
    --bigbang-color-border-focus#146d83#171717#171717#77bacf#e5e5e5#e5e5e5
    --bigbang-color-border-danger#c14347#c14347#c14347#ff9a97#ff9a97#ff9a97
    --bigbang-color-text-subtle#404040#404040#404040#d4d4d4#d4d4d4#d4d4d4
    --bigbang-motion-hover-duration0.11s0.11s0.11s0.11s0.11s0.11s
    Interaction Property Duration token Easing token Reduced motion
    Focus and error Border and fill colour change (motion.field) motion-focus-duration motion-focus-easing Same; colour only.
    Currency Darkens on focus motion-hover-duration motion-hover-easing Same; colour only.
    Error message Slides in (motion.fieldMessage) motion-collapsible-duration motion-collapsible-easing It only fades.