Ink Timeline

Ink Timeline

A process timeline drawn in ink — the rail fills as you scroll, and each step ignites the moment its dot crosses the center of the viewport.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/ink-timeline.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/ink-timeline.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
stepsInkTimelineStep[]Timeline entries — title, optional kicker and description.
scrollContainerRefRefObject<HTMLElement | null>Scrollable ancestor when embedded; defaults to the window.
stiffnessnumber240Ignite spring stiffness — higher snaps the dot in harder.
dampingnumber28Ignite spring damping — lower overshoots more.
classNamestringAdditional CSS classes.