---
title: Timeline
---

import LibraryInfo from '@theme/LibraryInfo'
import { Feedback, TokensTable, PropsTable } from '../../src/components'
import { Timeline as BaseDocs } from 'docs/@telus-uds/components-base'
import AvailableOnBoth from '../../partials/_platform-considerations-both.mdx'

# Timeline

<LibraryInfo />

```jsx live
<Timeline accessibilityLabel="My example timeline component">
  <Box>
    <Typography block variant={{ size: 'eyebrow' }}>
      10:00 AM
    </Typography>
    <Typography block variant={{ size: 'h3' }}>
      Your Title Goes Here
    </Typography>
    <Typography>Some Information related to your component goes here</Typography>
  </Box>
  <Box>
    <Typography block variant={{ size: 'eyebrow' }}>
      10:00 AM
    </Typography>
    <Typography block variant={{ size: 'h3' }}>
      Your Title Goes Here
    </Typography>
    <Typography>Some Information related to your component goes here</Typography>
  </Box>
</Timeline>
```

## Introduction

Timeline display a list of events in chronological order or content in progressive order.

# Horizontal Timeline

Timeline can be displayed horizontally by passing `horizontal` variant, notice on XS devices it will always automatically
display vertically.

```jsx live
<Timeline variant={{ horizontal: true }} accessibilityLabel="My horizontal timeline component">
  <Box>
    <Typography block variant={{ size: 'eyebrow' }}>
      10:00 AM
    </Typography>
    <Typography block variant={{ size: 'h3' }}>
      Your Title Goes Here
    </Typography>
    <Typography>Some Information related to your component goes here</Typography>
  </Box>
  <Box>
    <Typography block variant={{ size: 'eyebrow' }}>
      10:00 AM
    </Typography>
    <Typography block variant={{ size: 'h3' }}>
      Your Title Goes Here
    </Typography>
    <Typography>Some Information related to your component goes here</Typography>
  </Box>
</Timeline>
```

[Follow the appropriate instructions](importing-components) to add this component in to your app.

## Guidance

- Allow custom content in panel
- Render as a list of content
- Expands 100% of container
- Show vertical Timeline by default
- Allow user to select horizontal
  - Horizontal Timeline will responsively display as vertical on XS breakpoint

### Accessibility

Use [accessibilityLabel] prop announce timeline's purpose, for example “Timeline of a SmartHome experience”

### Platform considerations

<AvailableOnBoth />

:::caution
The 'tag' and 'childrenTag' props in the timeline feature should be considered deprecated and will be removed in a future release. Although these props are currently in production, we plan to phase them out. Moving forward, we recommend not passing this props as they will be set to the default of "ui" and "li". Please keep this in mind when making updates to the timeline feature.
:::

## Props

<PropsTable base={BaseDocs} />

## Tokens

<TokensTable base={BaseDocs} component="Timeline" />

## Feedback

<Feedback component="Timeline" />
