App Timeline
Vertical timeline as an ordered list: a ring-and-dot indicator or custom mark per item, a 1px rail joining them, title, description and small label. CSS variables tune dot size and alignment.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn add @01orbital/timelinenpx shadcn add @01orbital/timelineyarn shadcn add @01orbital/timelinebunx --bun shadcn add @01orbital/timelinePart of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).
It lands at components/editorial/timeline.tsx, as source you own and edit.
Usage
import {
Timeline,
TimelineContent,
TimelineDescription,
TimelineIndicator,
TimelineItem,
TimelineLabel,
TimelineTitle,
} from "@/components/editorial/timeline"
// Every word on the page. Change copy here, not in the markup.
const COPY = {
label: "Step",
} as const
const STEPS = [
{ title: "Explore", body: "Choose a direction." },
{ title: "Build", body: "Compose the pieces that fit." },
{ title: "Refine", body: "Make the details yours." },
] as const
export default function Demo() {
return (
<Timeline className="w-full max-w-lg">
{STEPS.map(({ title, body }, i) => (
<TimelineItem key={title}>
<TimelineIndicator />
<TimelineContent>
<TimelineLabel>
{COPY.label} {i + 1}
</TimelineLabel>
<TimelineTitle>{title}</TimelineTitle>
<TimelineDescription>{body}</TimelineDescription>
</TimelineContent>
</TimelineItem>
))}
</Timeline>
)
}Anatomy
App Timeline is built from 7 parts. In the example they nest like this:
Timeline
└─ TimelineItem
├─ TimelineIndicator
└─ TimelineContent
├─ TimelineLabel
├─ TimelineTitle
└─ TimelineDescriptionTimeline: A vertical timeline, as an ordered list. HoldsTimelineItementries, each with a mark and a line down to the next.TimelineItem: One entry, anliby default. Put aTimelineIndicatorand aTimelineContentinside it. It draws the line from under its mark to the next entry's mark; the last entry has none. ATimelinenested insideTimelineContentkeeps its own lines.TimelineIndicator: The mark beside an entry. With no children it shows a small dot in a ring. Pass an element, such as an icon, to show your own mark instead; the ring and fill are then removed. Bare text andfalseare not supported.TimelineContent: The text of an entry, beside its mark. It leaves 32px of space before the next entry, and none after the last.TimelineLabel: A small muted line for an entry, such as a date. Its line height matches the default--timeline-lh, so a label that comes first lines up with the mark.TimelineTitle: The entry's title, in medium weight. It renders adiv, not a heading.TimelineDescription: Supporting text for an entry, small and muted, under the title.
API reference
Timeline
A vertical timeline, as an ordered list. Holds TimelineItem entries, each with a mark and a line down to the next.
Three CSS variables, set on it through className or style, tune the marks. --timeline-lh is the line height of the first line in TimelineContent, so the mark lines up with it: the default 1rem suits a leading TimelineLabel; set 1.5rem when a title or body text comes first. --timeline-dot is the mark's diameter (1rem). --timeline-nudge (1px) lowers the mark slightly, because a mark centered on a line of text looks high.
It accepts the HTML attributes of the element it renders.
TimelineItem
One entry, an li by default. Put a TimelineIndicator and a TimelineContent inside it. It draws the line from under its mark to the next entry's mark; the last entry has none. A Timeline nested inside TimelineContent keeps its own lines.
It accepts the props of the Base UI part it wraps, and the HTML attributes of the element it renders.
TimelineIndicator
The mark beside an entry. With no children it shows a small dot in a ring. Pass an element, such as an icon, to show your own mark instead; the ring and fill are then removed. Bare text and false are not supported.
It accepts the HTML attributes of the element it renders.
TimelineContent
The text of an entry, beside its mark. It leaves 32px of space before the next entry, and none after the last.
It accepts the HTML attributes of the element it renders.
TimelineLabel
A small muted line for an entry, such as a date. Its line height matches the default --timeline-lh, so a label that comes first lines up with the mark.
It accepts the HTML attributes of the element it renders.
TimelineTitle
The entry's title, in medium weight. It renders a div, not a heading.
It accepts the HTML attributes of the element it renders.
TimelineDescription
Supporting text for an entry, small and muted, under the title.
It accepts the HTML attributes of the element it renders.
Dependencies
npm: @base-ui/react, cn. The CLI installs them for you.
No other registry pieces.
More Editorial
Announcement
News pill link built on the secondary Badge, with a headline that truncates first and a Learn more action set off by a short vertical Separator. Renders an anchor through Base UI useRender.
Eyebrow
Short label set above a heading. Default is 12px uppercase Geist Mono with wide tracking in muted ink; sans is a 14px semibold line in sentence case. Pulls in the Geist Mono font item.