Skip to content
caliper ui pro docs

Streak flame

A streak counter with a flame that earns its size: an ember under three days, a flame after three, a fire after a week and a blaze after a month. The week's days check off in turn beneath it.

Pro

12days in a row

Today is done. See you tomorrow.

When to use

  • Habit, learning and fitness apps.
  • Any daily practice where consistency is the goal.

When not to use

  • Guilt-driven nudges; it states what is true and does not scold.
  • Streaks that cannot be recovered; say how they can.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/streak-flame

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

StreakFlame

4 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
days *number—Days in a row.
week *boolean[]—The last seven days, Monday first: true where the day counted.
today *number—Which of the seven is today, 0 to 6.
labelstring"Streak"Names the habit, e.g. "Reading".

flameTier

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-label and aria-hidden in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/streak-flame.md

The index of every part is at /llms.txt.

More in Changing values