Timeline

A vertical list of events or activities displayed in chronological order.

Anatomy

<script>
  import { Timeline } from "@saas-ui/svelte/components/timeline";
</script>

<Timeline.Root>
  <Timeline.Item>
    <Timeline.Connector>
      <Icon />
    </Timeline.Connector>
    <Timeline.Content>
      <Timeline.Title>Event title</Timeline.Title>
      <Timeline.Description>Event description</Timeline.Description>
    </Timeline.Content>
  </Timeline.Item>
</Timeline.Root>

Examples

Alternating Accessibility

Create an alternating timeline layout.

Basic Accessibility

Basic timeline with icons and content.

Colours Accessibility

Use the colour prop to change the colour scheme. Supports all standard colour palettes.

Content Before Accessibility

Add content before the connector for timestamps.

Sizes Accessibility

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

Variants Accessibility

Use the variant prop to change the visual style.

Props

Prop Type Default Description
size sm | md | lg | xl md The size of the timeline.
variant subtle | solid | outline | plain solid The visual style of the timeline.
colour gray | red | orange | yellow | green | teal | blue | cyan | purple | pink | rose gray The colour theme.
class text - CSS class to apply to the component.