#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>
</>;

NameTypeDefaultDescriptionControls
title *string
-

Title of the timeline step

variant *LegacyTimelineVariant
-

State of the timeline step

childrenReactNode
-

Arbitary content of a timeline step

subTitlestring
-

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#111
  • BORDER_FUTURE#555#bbb#555#bbb
  • BACKGROUND_PAST#fff#111#fff#111
  • BORDER_PAST#555#bbb#555#bbb
  • ICON_SHAPE_PAST#000#bbb#000#bbb
  • BACKGROUND_ACTIVE#7c4#7c4#1a3#1a3
  • ICON_SHAPE_ACTIVE#000#000#fff#fff
  • BACKGROUND_WARNING#eb2#fc2#fd3#fd3
  • ICON_SHAPE_WARNING#000#000#000#000
  • BACKGROUND_ERROR#e64#e64#b21#b21
  • ICON_SHAPE_ERROR#000#000#fff#fff
  • BACKGROUND_DONE#7c4#7c4#1a3#1a3
  • ICON_SHAPE_DONE#000#000#fff#fff
  • BACKGROUND_PROBLEM#fff#111#fff#111
  • BORDER_PROBLEM#555#bbb#555#bbb
  • ICON_SHAPE_PROBLEM#000#bbb#000#bbb