App UI kits › Knot › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | KqPhotos | ||
onChange | (rules: { rest: number; cut: number; freeze: boolean }) => void |
destroy(): voidimport KnotRules from './KnotRules';
<KnotRules />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Habit tracker app UI.