remold/ui

Streak

The celebration learning apps show when you finish today's lesson: a grey ember grows into a full flame, sparks burst out, the day count rolls up and today's dot fills in.

MorphMotion

day streak

Finish today's lesson to keep your streak.
  1. M
  2. T
  3. W
  4. T
  5. F
  6. S
  7. S

Things to try

  • Keep the streak. The grey ember reshapes into a full flame and catches colour.
  • Watch the burst. Sparks fly out of the flame as it lands, and the day count rolls up by one.
  • Look at the week. Today's dot fills in alongside the days you've already kept.

Install

npx shadcn@latest add https://your-docs-site/r/streak.json

Dependencies

The install command adds these for you. If you copy the code by hand, install them yourself.

npm install @remold-ui/react motion

How it works

  • The ember grows into the flame. The flame is one path reshaped with Remold.Icon, so the ember genuinely becomes the flame rather than one icon swapping for another.
  • The sparks, the colour and the rolling count are Motion.

On this page