Data display

Timeline

@xui/timeline

A vertical timeline of events — colored dots on a connecting axis with projected content and optional labels. Place the axis on the left or right.

Install

pnpm add @xui/timeline

Add the barrel to a standalone component's imports:

import { XuiTimelineImports } from '@xui/timeline';

@Component({
  imports: [XuiTimelineImports],
  // …
})

Examples

Basic

Loading preview…

Right axis

Loading preview…

API

XuiTimelineItem

componentxui-timeline-item

One entry on a {@link XuiTimeline}: a colored dot on the axis and projected content beside it, with an optional label.

Inputs

NameTypeDefaultcolorXuiTimelineColorIntent colour of the item's dot — how this event reads at a glance.this.config.colorlabelstringSmall text above the item's content, usually the timestamp.''

XuiTimeline

componentxui-timeline

A vertical timeline. Wrap <xui-timeline-item> entries; each renders a colored dot on a connecting axis with its projected content beside it. mode places the axis on the left (default) or right.

Inputs

NameTypeDefaultclassClassValueExtra classes, merged into the component's own rather than replacing them.''modeXuiTimelineModeWhich side of the rail the content sits on.this.config.mode

Source

libs/ui/timeline/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.