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. See this docs
direction"column" \| "row"Allows to set direction, by default on desktop is row and on mobile is set to column

Subcomponents

TimelineStep

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

Props

NameTypeDefaultDescription
childrenReact.NodeThe content of the component
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”