Skip to main content

Accumulator

A graphical representation of a data set based on one variable.

Submit feedback
github
import { Accumulator } from '@uhg-abyss/mobile';
<Accumulator />

Percentage

The percentage prop determines how far the accumulator will move. The prop accepts numbers between 0 and 100. The default is 0.

Animation Delay

The animationDelay prop is used to start the animation after a given delay (milliseconds). The default is 0.

Color

The color prop is used to set the color for the accumulator track. The default is set to $accumulator.color.surface.track.green.

Accumulator Props

Prop NameTypeDefaultDescription
animationDelaynumber0The amount of milliseconds before animating the bar
colorstring$accumulator.color.surface.track.greenThe color of the accumulator track
percentagenumber0The percentage of the bar that is filled. Value between 0 and 100

Accumulator Classes

Class NameDescription
abyss-accumulator-rootAccumulator root element
abyss-accumulator-trackAccumulator track element

Accumulator Tokens

Token NameValue
accumulator.color.surface.track.green
#149E8F
accumulator.color.surface.track.primary
#002677
accumulator.color.surface.track.info
#196ECF
accumulator.color.surface.track.white
#FFFFFF
accumulator.color.border.container.green
#15A796
accumulator.color.border.container.primary
#002677
accumulator.color.border.container.info
#196ECF
accumulator.color.border.container.white
#FFFFFF
accumulator.border-radius.container
500
accumulator.border-radius.track
500
accumulator.border-width.container
0.5
accumulator.sizing.height.track
6
accumulator.spacing.padding.all.container
1

Accumulator Classes

V2V1Status
-accumulator-end-pieceRemoved
accumulator-rootaccumulator-rootUnchanged
-accumulator-slideRemoved
-accumulator-slide-stopperRemoved
-accumulator-start-pieceRemoved
accumulator-trackaccumulator-trackUnchanged

Accumulator Props

V2V1Status
animationDelayanimationDelayUnchanged
color-Added
percentagepercentageUnchanged
Table of Contents