BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ondo-ui/timeline
This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

timeline

ondo-ui/timeline
RemovedComponent

A visual representation of events in chronological order.

Install it

npx shadcn@latest add https://ui.ondo.dou.so/r/timeline.json

Source

components/ui/timeline.tsxui.ondo.dou.so/r/timeline.json · first 6 KB
1"use client"
2
3import { createContext, useCallback, useContext, useState } from "react"
4import { mergeProps } from "@base-ui/react/merge-props"
5import { useRender } from "@base-ui/react/use-render"
6import { cva, type VariantProps } from "class-variance-authority"
7
8import { cn } from "@/lib/utils"
9
10const timelineVariants = cva(
11 "group/timeline flex [--timeline-rail:1rem] data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col",
12 {
13 variants: {
14 size: {
15 sm: "[--timeline-icon:0.5rem] [--timeline-indicator:0.75rem]",
16 default: "[--timeline-icon:0.625rem] [--timeline-indicator:1rem]",
17 lg: "[--timeline-icon:0.875rem] [--timeline-indicator:1.5rem]",
18 },
19 },
20 defaultVariants: {
21 size: "default",
22 },
23 }
24)
25
26type TimelineContextValue = {
27 activeStep: number
28 setActiveStep: (step: number) => void
29}
30
31const TimelineContext = createContext<TimelineContextValue | undefined>(
32 undefined
33)
34
35const useTimeline = () => {
36 const context = useContext(TimelineContext)
37 if (!context) {
38 throw new Error("useTimeline must be used within a Timeline")
39 }
40 return context
41}
42
43interface TimelineProps
44 extends
45 useRender.ComponentProps<"div">,
46 VariantProps<typeof timelineVariants> {
47 defaultValue?: number
48 value?: number
49 onValueChange?: (value: number) => void
50 orientation?: "horizontal" | "vertical"
51}
52
53function Timeline({
54 defaultValue = 1,
55 value,
56 onValueChange,
57 orientation = "vertical",
58 size = "default",
59 className,
60 render,
61 children,
62 ...props
63}: TimelineProps) {
64 const [activeStep, setInternalStep] = useState(defaultValue)
65
66 const setActiveStep = useCallback(
67 (step: number) => {
68 if (value === undefined) {
69 setInternalStep(step)
70 }
71 onValueChange?.(step)
72 },
73 [value, onValueChange]
74 )
75
76 const currentStep = value ?? activeStep
77
78 const defaultProps = {
79 className: cn(timelineVariants({ size }), className),
80 "data-orientation": orientation,
81 "data-size": size,
82 "data-slot": "timeline",
83 children,
84 }
85
86 return (
87 <TimelineContext.Provider
88 value={{ activeStep: currentStep, setActiveStep }}
89 >
90 {useRender({
91 defaultTagName: "div",
92 render,
93 props: mergeProps<"div">(defaultProps, props),
94 })}
95 </TimelineContext.Provider>
96 )
97}
98
99function TimelineContent({
100 className,
101 render,
102 children,
103 ...props
104}: useRender.ComponentProps<"div">) {
105// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • @ondo-ui/utils

Files it writes

  • components/ui/timeline.tsx

Facts

Registry
ondo-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-04
Last confirmed
9 days ago

Go to the source

ui.ondo.dou.so douinc/ondo-ui on GitHub Raw registry item This item as JSON

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 from measured facts

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