BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/loomui/thread-timeline

Thread Timeline

loomui/thread-timeline
FreeComponent

A timeline whose thread is sewn down the page as you read, lighting each node as it reaches it.

Live preview

live · rendered by the registry
Rendered by loomui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://loomui.design/r/thread-timeline.json

Source

registry/loomui/thread-timeline.tsxloomui.design/r/thread-timeline.json
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6
7export interface ThreadTimelineProps extends React.ComponentProps<"ol"> {
8 /** Where the thread head sits in the viewport, 0 at the top, 1 at the bottom. */
9 line?: number
10}
11
12export function ThreadTimeline({
13 children,
14 className,
15 line = 0.55,
16 style,
17 ...props
18}: ThreadTimelineProps) {
19 const ref = React.useRef<HTMLOListElement>(null)
20
21 React.useEffect(() => {
22 const list = ref.current
23 if (!list) {
24 return
25 }
26
27 const settle = (progress: number, reached: boolean) => {
28 list.style.setProperty("--thread-progress", `${progress}`)
29 for (const item of list.querySelectorAll<HTMLElement>(
30 "[data-slot='thread-timeline-item']"
31 )) {
32 item.toggleAttribute("data-reached", reached)
33 }
34 }
35
36 if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
37 settle(1, true)
38 return
39 }
40
41 let frame = 0
42
43 const measure = () => {
44 const head = window.innerHeight * line
45 const rect = list.getBoundingClientRect()
46 const progress = rect.height > 0 ? (head - rect.top) / rect.height : 1
47 list.style.setProperty(
48 "--thread-progress",
49 `${Math.min(Math.max(progress, 0), 1)}`
50 )
51
52 // Each node is measured against the same head the thread is drawn to, so
53 // a node can never light up ahead of the thread that reaches it.
54 for (const item of list.querySelectorAll<HTMLElement>(
55 "[data-slot='thread-timeline-item']"
56 )) {
57 const node = item.querySelector<HTMLElement>(
58 "[data-slot='thread-timeline-node']"
59 )
60 const box = (node ?? item).getBoundingClientRect()
61 item.toggleAttribute("data-reached", box.top + box.height / 2 <= head)
62 }
63 }
64
65 const onScroll = () => {
66 cancelAnimationFrame(frame)
67 frame = requestAnimationFrame(measure)
68 }
69
70 measure()
71 window.addEventListener("scroll", onScroll, { passive: true })
72 window.addEventListener("resize", onScroll, { passive: true })
73 return () => {
74 window.removeEventListener("scroll", onScroll)
75 window.removeEventListener("resize", onScroll)
76 cancelAnimationFrame(frame)
77 }
78 }, [line])
79
80 return (
81 <ol
82 ref={ref}
83 data-slot="thread-timeline"
84 className={cn("relative", className)}
85 style={{ "--thread-progress": "0", ...style } as React.CSSProperties}
86 {...props}
87 >
88// … truncated

What it pulls in

Other registry items

  • utils

Files it writes

  • registry/loomui/thread-timeline.tsx

Facts

Registry
loomui
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
yesterday

Go to the source

Docs on loomui loomui.design rjcuff/Loom-UI on GitHub Raw registry item This item as JSON

More from loomui

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Backdropaurora-backdroploomuiComponentsFreeno deps
Bento Gridbento-gridloomuiComponentsFreeno deps
Card Stackcard-stackloomuiComponentsFreeno deps
Compare Slidercompare-sliderloomuiComponentsFreeno deps
Confetti Buttonconfetti-buttonloomuiComponentsFreeno deps
Count Upcount-uploomuiComponentsFreeno deps
Credit Cardcredit-cardloomuiComponentsFreeno deps
DrawerdrawerloomuiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex