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.
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
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.
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.mdThe index of every part is at /llms.txt.