Timeline Component

React timeline component for activity feeds, order tracking and changelogs. Done/active/pending statuses, custom icons and timestamps — built with Tailwind CSS.

Import

javascript
1import { Timeline } from "@neuctra/ui";

Basic Usage

Each item carries a status: done, active or pending.

  1. Order placed

    09:12
  2. Payment confirmed

    09:14
  3. Out for delivery

    12:40

    Your package is on its way.

  4. Delivered

Custom Icons & Compact Size

  1. v0.3.0 released

    Today
  2. 24 commits merged

    Yesterday
  3. Next milestone

Props

All available props for the Timeline component.

PropTypeDefaultDescription
itemsTimelineItem[]—Entries to render (required)
items[].titleReactNode—Entry heading
items[].descriptionReactNode—Muted body text
items[].timeReactNode—Timestamp shown at the right edge
items[].iconReactNodecheck / dotCustom marker icon
items[].status"done" | "active" | "pending""pending"Controls marker and text emphasis
size"sm" | "md""md"Density of the list
itemClassNamestring—Styles each entry's row
connectorClassNamestring—Styles the vertical connector line
dotClassNamestring—Styles the status marker/dot
contentClassNamestring—Styles the title/time/description wrapper
titleClassNamestring—Styles the entry title
timeClassNamestring—Styles the timestamp text
descriptionClassNamestring—Styles the entry description

Accessibility

  • Renders an ordered list (<ol>), so sequence is conveyed to screen readers.
  • Connector lines and markers are decorative (aria-hidden); titles carry the meaning.

Frequently Asked Questions

How do I install and import the Timeline component?

Install the @neuctra/ui package, then import it with: import { Timeline } from "@neuctra/ui";

What variants and sizes does Timeline support?

Timeline supports sizes: sm, md. Use the variant and size props to switch between them, or pass a className to layer on custom Tailwind CSS classes.

Is the Timeline component accessible?

Timeline is built with semantic HTML and standard ARIA attributes, and supports keyboard navigation and focus states out of the box, so it works well with screen readers and keyboard-only users.

Built with React, Tailwind CSS & TypeScript.