[ Data Display ]
Timeline
A vertical activity feed. Each item has a tinted icon on a connecting line, a header with title, time and an unread dot, an optional description, a bordered content card and an actions row.
Import#
import { Timeline, TimelineItem } from 'reusify-ui';When to use#
- Activity and notification feeds: comments, uploads, status changes.
- Audit logs and order histories where the sequence matters.
- For a checklist the user completes, use Checklist; for step progress, StepList or StepPill.
Examples#
Activity feed#
content renders inside a bordered card; actions sit below it. The unread dot is announced as "Unread".
- John Traveller2 min agohas commented on your videoGreat post on UI! A well-designed UI can have a significant impact on the user experience.
- John Traveller5 min agohas commented on your videoAwesome video! Keep up the great work!
- John Traveller12 min agoAdded a file
Compact log#
Without content the items stack tightly, like an audit log. connector={false} hides the line.
- Payment received09:12
- Order packed11:40
- Out for delivery14:05
<Timeline>
<TimelineItem icon={<FiCheck />} color="success" title="Payment received" time="09:12" />
<TimelineItem icon={<FiClock />} color="warning" title="Order packed" time="11:40" />
<TimelineItem icon={<FiPlay />} color="info" title="Out for delivery" time="14:05" />
</Timeline>Used in designs#
Timeline in real layouts: this design uses it. Open one to try it and copy the code.
API reference#
<Timeline />
Renders an <ol>. Children are TimelineItem elements.
| Prop | Type | Default | Description |
|---|---|---|---|
connector | boolean | true | Draw the line between icons. |
connectortruebooleanDraw the line between icons.
<TimelineItem />
Renders an <li>; other props (onClick, data-*) go on it.
| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | - | Icon in the tinted circle. |
color | 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | CSS color | 'primary' | Tint of the icon circle. |
title | ReactNode | - | Bold first line (who / what). |
time | ReactNode | - | Muted text after the title. |
description | ReactNode | - | Muted line under the title. |
unread | boolean | false | Blue dot on the right, labelled "Unread". |
content | ReactNode | - | Rendered inside a bordered card. |
actions | ReactNode | - | Buttons below the content. |
children | ReactNode | - | Anything else, rendered after content. |
icon-ReactNodeIcon in the tinted circle.
color'primary''primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | CSS colorTint of the icon circle.
title-ReactNodeBold first line (who / what).
time-ReactNodeMuted text after the title.
description-ReactNodeMuted line under the title.
unreadfalsebooleanBlue dot on the right, labelled "Unread".
content-ReactNodeRendered inside a bordered card.
actions-ReactNodeButtons below the content.
children-ReactNodeAnything else, rendered after content.
Accessibility#
- Uses an ordered list, so screen readers announce the number of events and their order.
- Icons and the connector are decorative; titles and descriptions carry the meaning.
- The unread dot has role="img" and aria-label="Unread".