Skip to content
HomeCobalt

Timeline

Lists what happened to one thing, in order, each event with its time, a title and an optional line about it: a fund's filings, a booking's changes, an audit trail.

Examples

A fund's filings, newest first, each with its date and what it changed.
  1. Form 13F filed
    186 holdings, $4.8B. Seven new positions.
  2. Form ADV amended
    New auditor: Whitfield & Lane LLP.
  3. Form 13F filed
    179 holdings, $4.6B.
In a cardRecent activity in a card, timed with RelativeTime so it stays current; nothing in it waits on the reader, so no event takes the primary mark.
Activity
  1. Watchlist shared with Jo Park
  2. Calder Global Equity added
  3. Watchlist created

Variants

  1. Confirmation sent
  2. Booked online
DefaultAn event that needs nothing from the person.
  1. Guest asked for a late check-out
    Until 1 PM on Oct 27. Not answered yet.
  2. Booked online
PrimaryThe one event that needs the person now, such as an unanswered request.
  1. Deposit declined
    The card ending 4417 was declined by its bank.
  2. Deposit requested
DestructiveAn event that went wrong, such as a declined payment.

States

  1. Refund sent to the bank
    Banks take 3 to 5 working days to show it.
  2. Refund approved
CurrentThe one event under way, such as a refund on its way to the bank, a mark with a small square in it.
  1. Deposit being checked
  2. Deposit received
  3. Deposit requested
DoneA step of a process that is finished, a filled mark. Left without a state, an item is an event in a history, a hollow mark; that is the default.
  1. Form 13F due
  2. Form 13F filed
  3. Form ADV amended
UpcomingAn event still to come, such as a check-in, a dashed mark, and a dotted line to the events beside it.

Usage

Use it when

  • A record shows its history: filings, changes, payments, messages.
  • An audit trail lists who did what, newest first.

Use something else when

  • The events are things to open and act on, such as a feed of results. Use Item instead, in an ItemGroup.
  • The steps are a process the person moves through, such as a setup. Use Progress instead, above a numbered list of the steps.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/timeline.json
import { Timeline, TimelineItem, TimelineHeader, TimelineTitle, TimelineTime, TimelineDescription } from "@/components/cobalt/ui/timeline"