Timeline

Timeline

import Timeline, { TimelineStep } from "@kiwicom/orbit-components/lib/Timeline";
<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

NameTypeDefaultDescription
childrenReact.NodeList of TimelineStep components.
dataTeststringOptional prop for testing purposes.
idstringSet id for Timeline.
spaceAfterenumAdditional margin-bottom after component.
direction"column" \| "row"Allows to set direction, by default on desktop is row and on mobile is set to column.

enum

spaceAfter
"none"
"smallest"
"small"
"normal"
"medium"
"large"
"largest"

Subcomponents

TimelineStep

import TimelineStep from "@kiwicom/orbit-components/lib/Timeline/TimelineStep";

Props

NameTypeDefaultDescription
childrenReact.NodeOptional. The content of the TimelineStep
labelReact.NodeText for label component inside.
subLabelReact.NodeText for subLabel component inside.
typeenumType of current process step.
activebooleanControlled state of the step.

enum

type
“success”
“warning”
“critical”
“info”