Skip to content
Feedback & Data

StreakFlame

The streak is a clay lamp in a stone niche. The flame burns higher the longer the streak, sinks low on a day not yet done and takes the wind from your pointer. Light today and it leaps; lose the streak and it dies to a thread of smoke.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
streaknumber-Controlled days in a row. 0 with lit false puts the flame out.
defaultStreaknumber12Uncontrolled start count.
litboolean-Controlled: today is done.
defaultLitbooleanfalseToday is done at start.
unitstring"day streak"Word after the count.
onLight(streak: number) => void-Called with the new streak when today is lit.
classNamestring"w-full max-w-lg"Set the width here. Everything scales with it.