Skip to content
Ballpoint

Timeline

Stops along a hand-drawn arrow; each one lands as the pen passes its dot. Across the top, or down the side.

Only in Ballpoint
  1. Margins

    Doodles in every notebook.

  2. A button

    The first one drawn with a pen.

  3. A portfolio

    All of it in blue ballpoint.

  4. Ballpoint

    The pen, for everyone.

Installation

pnpm dlx shadcn@latest add @ballpoint/timeline

Usage

tsx
import { Timeline, TimelineDescription, TimelineItem, TimelineTime, TimelineTitle } from "@/components/ui/timeline"

<Timeline>
  <TimelineItem>
    <TimelineTitle>Ballpoint</TimelineTitle>
    <TimelineTime dateTime="2026">2026</TimelineTime>
    <TimelineDescription>The pen, for everyone.</TimelineDescription>
  </TimelineItem>
</Timeline>

Examples

Down the side

For more stops, longer ones, or narrow screens: a line down the left, each stop landing as the pen reaches it.

  1. Ordered

    A box of blue ballpoints.

  2. Shipped
  3. Delivered

    Left on the doorstep, in the rain.

Order status

Done, current and upcoming stops: the current one underlined, the rest to come paler.

  1. Order placed
  2. Packed by hand

    Wrapped in a paper sleeve, not plastic.

  3. On its way

    With the courier, due Tuesday.

  4. Delivered

Changelog

Versions with a badge each, newest first.

  1. v1.2New

    Torn edges, tape and tilt for Paper.

  2. v1.1Fixed

    Selects open over the trigger, like native ones.

  3. v1.0First

    Forty components, drawn.

API reference

orientation
default "horizontal"
"horizontal" | "vertical"

An arrow across the top, each stop a column (scrolling sideways when there are more than fit), or a line down the side.

TimelineTime
component

A time element; pass dateTime for a machine-readable date.

TimelineItem status
default "done"
"done" | "current" | "upcoming"

Where the stop is. Current is underlined and marked aria-current="step"; upcoming is paler.

seed
string | number

Pins the drawing.

Pen settings

The drawing also takes draw, weight and speed, as props or from the nearest InkProvider. What each one does.