Basic

Project started

Initial commit pushed to repository

First release

v0.1.0 published to npm

Community feedback

First GitHub stars and issues

v1.0 launch

Stable API announced

<Timeline
  active={1}
  items={[
    { title: 'Project started', description: 'Initial commit pushed' },
    { title: 'First release', description: 'v0.1.0 published' },
    { title: 'Community feedback', description: 'First GitHub stars' },
    { title: 'v1.0 launch', description: 'Stable API announced' },
  ]}
/>

All active

Project started

Initial commit pushed to repository

First release

v0.1.0 published to npm

Community feedback

First GitHub stars and issues

v1.0 launch

Stable API announced

<Timeline active={10} items={events} color="green" />

Custom bullets

๐Ÿ’ก

Idea

The spark

๐Ÿ”จ

Build

Ship it

๐Ÿš€

Launch

Go live!

๐Ÿ“ˆ

Grow

Scale up

<Timeline
  active={2}
  items={[
    { title: 'Idea', description: 'The spark', bullet: '๐Ÿ’ก' },
    { title: 'Build', description: 'Ship it', bullet: '๐Ÿ”จ' },
    { title: 'Launch', description: 'Go live!', bullet: '๐Ÿš€' },
  ]}
  bulletSize="xl"
/>

Line variants

Solid line

Default

Dashed line

dashed variant

Dotted line

dotted variant

End

No line here

<Timeline
  active={1}
  items={[
    { title: 'Solid', lineVariant: 'solid' },
    { title: 'Dashed', lineVariant: 'dashed' },
    { title: 'Dotted', lineVariant: 'dotted' },
  ]}
/>

Timeline Props

PropTypeDefaultDescription
itemsTimelineItemDef[]โ€”Ordered list of event definitions (required)
activenumber-10-based index of the last active item
align'left'|'right''left'Side where item content is placed
bulletSize'xs'|'sm'|'md'|'lg'|'xl'|number|stringโ€”Size of the bullet circles
lineWidthnumberโ€”Width of the connector line in pixels
colorstringโ€”Default accent color for all bullet circles
radius'xs'|'sm'|'md'|'lg'|'xl'|stringโ€”Border radius of each bullet circle
classstringโ€”Additional CSS class names
styleobjectโ€”Inline styles

TimelineItemDef fields

FieldTypeDescription
titleReactNodeHeading text beside the bullet
descriptionReactNodeSecondary content beneath the title
bulletReactNodeCustom content inside the bullet circle
lineVariant'solid'|'dashed'|'dotted'Stroke style of the connector line below this item
colorstringPer-item accent color override