Skip to content
Browse docs and components

Timeline

timeline

An activity feed of events with a time, a status dot or a custom marker, and a rail that stops at the last item. For audit logs, deploy histories and notifications.

Responsive

Install

$npxshadcnadd@forme/timeline

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

TimelineItem

One event in an activity feed.

PropTypeDefaultDescription
title*ReactNode—
timeReactNode—A preformatted time. Wrap it in <time dateTime> if you have the ISO value.
markerReactNode—Replaces the dot: an avatar, an icon. Sized to 24px.
tone'success' | 'warning' | 'destructive' | 'neutral' | 'brand'"neutral"

Also takes every prop of <li> attributes.

The other parts

  • TimelineTakes <ol> attributes