#Overview
A timeline represents a timeline of steps. The steps can be in the past, present and future.
Show codeHide code
<>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
<Timeline 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>
</Timeline>
</>;
Name | Type | Default | Description | Controls |
---|---|---|---|---|
title * | string | - | Title of the timeline step | |
variant * | "active" | "done" | "error" | "future" | "past" | "problem" | "warning" | - | State of the timeline step | |
children | ReactNode | - | Arbitary content of a timeline step | |
subTitle | string | - | Optional second title of the timeline step |
#Colors
- Token
BACKGROUND_ACTIVE
#7c4#7c4#1a3#1a3BACKGROUND_DONE
#7c4#7c4#1a3#1a3BACKGROUND_ERROR
#e64#e64#b21#b21BACKGROUND_FUTURE
#fff#111#fff#111BACKGROUND_PAST
#fff#111#fff#111BACKGROUND_PROBLEM
#fff#111#fff#111BACKGROUND_WARNING
#eb2#fc2#fd3#fd3BORDER_FUTURE
#555#bbb#555#bbbBORDER_PAST
#555#bbb#555#bbbBORDER_PROBLEM
#555#bbb#555#bbbICON_SHAPE_ACTIVE
#000#000#fff#fffICON_SHAPE_DONE
#000#000#fff#fffICON_SHAPE_ERROR
#000#000#fff#fffICON_SHAPE_PAST
#000#bbb#000#bbbICON_SHAPE_PROBLEM
#000#bbb#000#bbbICON_SHAPE_WARNING
#000#000#000#000