---
title: "Event Timeline"
description: "A vertical event log with connected status dots, titles and metadata."
---

A vertical event log with connected status dots, titles and metadata. Compose it from the exported registry parts so local content and behaviour stay in the application while the visual contract stays token-driven.

_Live example of Event Timeline — see the page for the rendered demo._

## Installation

```bash
npx newtui@latest add timeline
```

npm dependencies: class-variance-authority.

Files written — React: components/ui/timeline.tsx. Vue: components/ui/timeline/Timeline.vue, components/ui/timeline/TimelineItem.vue, components/ui/timeline/TimelineDot.vue, components/ui/timeline/TimelineContent.vue, components/ui/timeline/TimelineTitle.vue, components/ui/timeline/TimelineMeta.vue, components/ui/timeline/index.ts.

## Usage

React:

```tsx
import { Timeline } from "@/components/ui/timeline"
```

Vue:

```ts
import { Timeline, TimelineItem, TimelineDot, TimelineContent, TimelineTitle, TimelineMeta } from "@/components/ui/timeline"
```

## API reference

**`Timeline`**

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children / default slot` | `React.ReactNode / Vue slot` | — | Content rendered inside the component. |
| `className / class` | `string` | — | Additional classes merged with the component defaults. |

The registry exports `Timeline`, `TimelineItem`, `TimelineDot`, `TimelineContent`, `TimelineTitle`, `TimelineMeta`. Parts without a table accept the native attributes for the element they render; React uses `className`, while Vue uses `class` and fallthrough attributes.

## Accessibility

Preserve the native semantics of the rendered elements and pass through ARIA attributes when the surrounding context needs a label or description. Any interactive child needs a visible focus indicator, and meaning must not rely on colour alone.

## Tokens

Event Timeline reads its colours, radii and motion from the `--newt-*` tokens. Override a token rather than editing the component.
