Timeline
To implement the Timeline component into your project you’ll need to add the import:
import Timeline, { TimelineStep } from "@kiwicom/orbit-components/lib/Timeline";
After adding import to your project you can use it simply like:
<Timeline><TimelineStep label="In Progress" time="20.05.2020" type="success">We’ll wait for the carrier(s) to send us the refund and contact them again if necessary.</TimelineStep></Timeline>
Props
The table below contains all types of props available in the Timeline component.
| Name | Type | Default | Description | 
|---|---|---|---|
| children | React.Node | List of TimelineStepcomponents. | |
| dataTest | string | Optional prop for testing purposes. | |
| id | string | Set idforTimeline. | |
| spaceAfter | enum | Additional margin-bottomafter component. | |
| direction | "column" \| "row" | Allows to set direction, by default on desktop is rowand on mobile is set tocolumn. | 
enum
| spaceAfter | 
|---|
| "none" | 
| "smallest" | 
| "small" | 
| "normal" | 
| "medium" | 
| "large" | 
| "largest" | 
Subcomponents
TimelineStep
import TimelineStep from "@kiwicom/orbit-components/lib/Timeline/TimelineStep";
Props
The table below contains all types of the props in TimelineStep component.
| Name | Type | Default | Description | 
|---|---|---|---|
| children | React.Node | Optional. The content of the TimelineStep | |
| label | React.Node | Text for labelcomponent inside. | |
| subLabel | React.Node | Text for subLabelcomponent inside. | |
| type | enum | Type of current process step. | |
| active | boolean | Controlled state of the step. | 
enum
| type | 
|---|
| “success” | 
| “warning” | 
| “critical” | 
| “info” |