Augeo AI Docs
Augeo Design SystemComponents

PointsAward

A points reward counting up to its amount, followed by the balance it lands in.

PointsAward

PointsAward shows the points a reward adds, counting up from zero, then the new balance. The count is the only state it holds, because it means nothing outside the animation. Assistive technology reads the final amount at once, because a changing number is noise to a screen reader.

Storybook

Loading

Props

Prop

Type

Also takes the attributes of the element it renders.

Tokens

Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.

  • --augds-foreground-brand-readable
  • --augds-foreground-primary
  • --augds-foreground-secondary
  • --augds-foreground-tertiary
  • --augds-surface-sunken

Source

  • src/components/ui/points-award/odometer.tsx
  • src/components/ui/points-award/points-award.tsx