Timeline
A vertical event feed rendered from an items array — a dot/connector rail with a per-item title, an optional preformatted time, a description, and an optional status color. Purely presentational: the parent owns the data and passes times already formatted.
- Order placed
Payment confirmed and receipt sent to your email.
- Preparing shipment
Items picked from the warehouse and packed.
- In transit
Package handed to the carrier — arriving in 2 days.
- Delivery attempt failed
No one was available. We will retry tomorrow.
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece timeline
Each item is { title, time?, description?, status?, icon?, number? }. The last item drops its connector automatically. The piece never formats dates — pass time as a ready-to-display string.
Usage
import Timeline from '@/components/ui/Timeline.pzl';
<Timeline items={ feed }/>Status colors
- Default event
- Brand highlight
- Completed step
- Something went wrong
- Muted / low priority
With icons
- Signed up
Account created and verified.
- Invited teammates
Three collaborators joined the workspace.
- First project shipped
Deployed to production.
Numbered steps
- 1Create your account
Pick a workspace name and verify your email address.
- 2Invite your team
Send invites by email or share a join link.
- 3Connect a repository
Authorize GitHub and choose the repos to track.
- 4Ship your first build
Push to main and watch the pipeline run.
Numbers with a completed step
- Account created
Workspace verified and ready.
- 2Invite your team
Send invites by email or share a join link.
- 3Connect a repository
Authorize GitHub and choose the repos to track.
Compact
- Build queued
- Build running
- Tests passed
- Deployed