App UI kits › Knot › Streak rules

Streak rules

Change rest days or how many misses cut the thread and the preview re-ties itself; a cut thread drops its loose ends.

Streak rules is a screen from Knot, an app ui kit with 11 screens: A habit tracker where each week is a real thread, and a missed day is slack, not a broken streak. Price: $5 for the whole pack.

Built with: live rule preview, cut thread physics, travel freeze.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Streak rules props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosKqPhotos
onChange(rules: { rest: number; cut: number; freeze: boolean }) => void

Methods on the ref

Use it in React

import KnotRules from './KnotRules';

<KnotRules />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Knot

Good for: Habit tracker app UI.