Back to Chakra Ui

Timeline

apps/www/content/docs/components/timeline.mdx

0.3.0-beta1.3 KB
Original Source
<ExampleTabs name="timeline-basic" />

Usage

tsx
import { Timeline } from "@chakra-ui/react"
tsx
<Timeline.Root>
  <Timeline.Item>
    <Timeline.Connector>
      <Timeline.Separator />
      <Timeline.Indicator />
    </Timeline.Connector>
    <Timeline.Content>
      <Timeline.Title />
      <Timeline.Description />
    </Timeline.Content>
  </Timeline.Item>
</Timeline.Root>

Examples

Sizes

Use the size prop to change the size of the timeline.

<ExampleTabs name="timeline-with-sizes" />

Variants

Use the variant prop to change the variant of the timeline.

<ExampleTabs name="timeline-with-variants" />

Content Before

Here's an example of a timeline with content before the timeline indicator.

<ExampleTabs name="timeline-with-content-before" />

Alternating Content

Here's an example of a timeline with alternating content.

<ExampleTabs name="timeline-alternating" />

Composition

Here's an example of how to compose the timeline with other components to create a consistent-looking timeline.

<ExampleTabs name="timeline-composition" />

Props

Root

<PropTable component="Timeline" part="Root" />

Explorer

Explore the Timeline component parts interactively. Click on parts in the sidebar to highlight them in the preview.

<Explorer name="timeline-basic" />