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
- Install dependencies:
pnpm add motion - Copy the source from the Code tab above.
- Place it at
components/mellow/ink-timeline.tsx - Import and use.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | InkTimelineStep[] | — | Timeline entries — title, optional kicker and description. |
| scrollContainerRef | RefObject<HTMLElement | null> | — | Scrollable ancestor when embedded; defaults to the window. |
| stiffness | number | 240 | Ignite spring stiffness — higher snaps the dot in harder. |
| damping | number | 28 | Ignite spring damping — lower overshoots more. |
| className | string | — | Additional CSS classes. |