Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Timeline

Used to display a list of events in chronological order

SourceStorybookRecipe
Product Shipped
13th May 2021

We shipped your product via FedEx and it should arrive within 3-5 business days.

Order Confirmed
18th May 2021
Order Delivered
20th May 2021, 10:30am

Anatomy

import { Timeline } from '@saas-ui/react/timeline'
<Timeline.Root>
  <Timeline.Item />
  <Timeline.Item />
</Timeline.Root>

Examples

Sizes

Use the size prop to change the size of the timeline.

S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed

Variants

Use the variant prop to change the variant of the timeline.

S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed
S
sagecreated a new project
sagechanged status from In progress to Completed

Content Before

Here's an example of a timeline with content before the timeline indicator.

Nov 1994
1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nov 2010
2
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nov 1994
1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nov 2010
2
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nov 1994
1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nov 2010
2
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Alternating Content

Here's an example of a timeline with alternating content.

Placed Order
Prepared Order
Order Delivered

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

variant 'solid'
'subtle' | 'solid' | 'outline' | 'plain'

The variant of the component

size 'md'
'sm' | 'md' | 'lg' | 'xl'

The size of the component

Previous

Textarea

Next

Toast