uibrik

Scrub Timeline

Preview

Customize

Year2026
Accent
Magnify1.6
Start week22

Usage

import { ScrubTimeline } from "@/components/uibrik/scrub-timeline/scrub-timeline";

<ScrubTimeline />

Installation

npx shadcn@latest add https://uibrik.com/r/scrub-timeline.json
Adds the files to components/uibrik/scrub-timeline and installs motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/scrub-timeline.

Props

ScrubTimeline
title
Type string
"2026 roadmap"
Heading, also the slider's label.
year
Type number
2026
Year the ruler spans, one tick per week.
accent
Type string
"#f97316"
Colour of milestones.
magnify
Type number
1.6
How much ticks grow under the pointer; 0 turns it off.
defaultWeek
Type number
22
Week the playhead starts on.
events
Type TimelineEvent[]
–
Milestones: { week (0–51), title, detail? }. Several in one week share a tick and the card steps through them.
todayWeek
Type number
–
Week to mark as today; earlier milestones show as done. Defaults to the real date.
onChange
Type (week: number) => void
–
Called as the playhead moves.
className
Type string
–
Classes for the outer shell.