#Overview
A timeline represents a timeline of steps. The steps can be in the past, present and future.
Show codeHide code
<>
<LegacyTimeline
title="Timeline Future"
variant="future"
subTitle="Second line"
>
<LightText>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</LightText>
</LegacyTimeline>
<LegacyTimeline title="Timeline Done" variant="done">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
<LegacyTimeline title="Timeline Active" variant="active">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
<LegacyTimeline title="Timeline Warning" variant="warning">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
<LegacyTimeline title="Timeline Error" variant="error">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
<LegacyTimeline title="Timeline Past" variant="past">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
<LegacyTimeline title="Timeline Problem" variant="problem">
<p>
This is where you can add a description of the timeline step. It can also
be a component with design that satisfies your use case.
</p>
<Button variant="primary">Click me</Button>
</LegacyTimeline>
</>;
| Name | Type | Default | Description | Controls |
|---|---|---|---|---|
| title * | string | - | Title of the timeline step | |
| variant * | LegacyTimelineVariant | - | State of the timeline step | |
| children | ReactNode | - | Arbitary content of a timeline step | |
| subTitle | string | - | Optional second title of the timeline step |
#Example
<LegacyTimeline title="Example" subTitle="Optional second title" state="Active">
...children
</LegacyTimeline>
#Colors
Generated from Figma Showcase
- Token name
BACKGROUND_FUTURE#fff#111#fff#111BORDER_FUTURE#555#bbb#555#bbbBACKGROUND_PAST#fff#111#fff#111BORDER_PAST#555#bbb#555#bbbICON_SHAPE_PAST#000#bbb#000#bbbBACKGROUND_ACTIVE#7c4#7c4#1a3#1a3ICON_SHAPE_ACTIVE#000#000#fff#fffBACKGROUND_WARNING#eb2#fc2#fd3#fd3ICON_SHAPE_WARNING#000#000#000#000BACKGROUND_ERROR#e64#e64#b21#b21ICON_SHAPE_ERROR#000#000#fff#fffBACKGROUND_DONE#7c4#7c4#1a3#1a3ICON_SHAPE_DONE#000#000#fff#fffBACKGROUND_PROBLEM#fff#111#fff#111BORDER_PROBLEM#555#bbb#555#bbbICON_SHAPE_PROBLEM#000#bbb#000#bbb