Timeline

A draggable timeline of dated events around a focused card.

Preview

Use the left and right arrow keys to move between events.

  • Jun 12 ’25

    Private beta opens

    1,204
  • Aug 3 ’25

    Lumen for Android

    3,918
  • Oct 14 ’25

    Offline drafts

    4,827
  • Nov 20 ’25

    Weekly signups double

    6,175
  • Jan 9 ’26

    Shared spaces

    2,640
  • Mar 17 ’26

    The command menu

    ⌘K
    5,302
  • May 28 ’26

    Top 10 in productivity

    13,916
  • Aug 5 ’26

    Lumen 2.0

    2.0
    27,130

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/timeline

API Reference

events
TimelineEvent[]
—
value?
string

Focused event id (controlled).

—
defaultValue?
string

Initially focused event id (uncontrolled). Defaults to the first event.

—
onValueChange?
((id: string) => void)
—
itemWidth?
number

Card width in px at full size. Shrinks to fit narrow containers.

340
height?
number

Stage height in px.

600
years?
boolean

Large year numerals drifting behind the cards.

true
ruler?
boolean

A group of ticks in each gap between cards.

true
cables?
boolean

Lines fanning from the top and bottom center to the cards near the center.

true
formatDate?
((date: Date) => string)
—
formatYear?
((date: Date) => string)
—
aria-label?
string
Timeline
className?
string
—

Updated