Skip to content
synccn

Timeline

Vertical activity log with icons and tones.

  1. Deployed to production

    Build 4f2a1c went live on all regions.

  2. Merged pull request #218

    Add range mode to Calendar.

  3. Preview build failed

  4. Branch created

Installation

$ pnpm dlx shadcn@latest add @synccn/timeline

First time in this project? Connect synccn with one command.

Usage

import { Timeline } from "@/components/ui/timeline";<Timeline items={events} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

Timeline

items: [{ title, time, description?, icon?, tone? ("default" | "primary" | "success" | "destructive") }]

  • itemsrequired
    TimelineItem[]

    Events, newest first.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.