Data

Timeline.

An ordered sequence with aligned details, readable states and room for actions.

LIVE PREVIEWTry it. It works.

Install the source

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/timeline.json

Registry setup · Examples · API and behavior · Open the playground

COMPLETE EXAMPLES

Use it in context.

Each example includes its imports, data and state. The preview runs that same source. Include the stylesheet once in your application.

A readable sequence of events

The caller supplies stable IDs, order and explicit date labels.

Loads this example when you need it.

Keyboard

  • This ordered timeline is read-only.

States covered

  • Complete
  • Current
  • Pending

Install this complete example and its component dependencies.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/example-basic-timeline.json
Complete source
React / TypeScript
/*!
MIT License

Copyright (c) 2026 Jaison

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
'use client';
import {Timeline} from '@bld8/ui';
import '@bld8/ui/styles.css';
export default function TimelineExample(){return <Timeline label="Example release history" items={[{id:'prepare',title:'Prepare example',state:'complete',description:'Collect the useful details.',dateTime:'2026-11-11T08:00:00Z',time:'11 Nov · 08:00 UTC'},{id:'review',title:'Review example',state:'current',description:'Check labels, focus and recovery.'},{id:'share',title:'Share example',state:'pending'}]}/>;}

Quick reference

React / TypeScript
<Timeline label="Release steps" items={[
  {id:"review", title:"Review the interface", state:"current",
   description:"Check keyboard focus and empty states.",
   dateTime:"2026-10-28T10:40:00+11:00", time:"28 Oct · 10:40"}
]} />

In the workspace or ZIP starter, import components from @bld8/ui and include @bld8/ui/styles.css once. Registry installations use your local bld8/ source path. Wrap overlays in UIProvider.

API & behaviour

Read-only ordered list with stable item IDs and supplied ordering. State is optional: complete, current or pending, with text labels and aria-current=step for the current item. Provide ISO dateTime and deterministic time labels. Icons are decorative Lucide components; content can contain your own labelled actions. density is comfortable or compact. Colour and motion use shared tokens; reduced motion and forced colours are supported. This is a display component, not a scheduler or interactive stepper.

Timeline

Timeline public properties
PropTypeDefault
itemsRequiredreadonly TimelineItem[]—
labelRequiredstring—
classNamestring | undefined—
density"compact" | "comfortable" | undefined'comfortable'

TimelineItem

TimelineItem public properties
PropTypeDefault
idRequiredstring

Stable identity. Keep the supplied order chronological or explicitly ranked.

—
titleRequiredReactNode—
contentReactNode—
dateTimestring | undefined

Machine-readable ISO date/time; pair with a deterministic display label.

—
descriptionReactNode—
iconLucideIcon | undefined—
state"complete" | "current" | "pending" | undefined

State is also announced in text, independently of colour.

—
timeReactNode—

Tables come from the public TypeScript declarations. Related types and function parameters are shown alongside their component. A dash means no default is declared at the public function boundary.

Related controls

Notes to self

Test this component with real content, keyboard input and both themes. The example is a starting point; labels, error handling and behaviour still need to fit the application.