Block 16 of 297
Timeline
History and milestones as an ordered timeline. Good for about pages and annual reports.
- Puck key
- TimelineBlock
- Export
- timelineBlock
- React component
- <Timeline />
- Path
- components/puck/timeline-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A vertical history of dated milestones joined by a thin line, with an open dot for each entry and a filled dot on the last. Dates sit above each entry on phones and move into a right-aligned left-hand column from tablet width up. It holds up to thirty entries, enough for an organization history or a multi-year project.
- An organization's history on an About page
- Milestones for a capital project or restoration effort
- An anniversary or centennial feature
Writing the content
- Keep Year or date short, like 1998 or Spring 2024; long dates crowd the narrow column on tablets.
- Put entries in chronological order yourself; the block shows them in the order you add them.
- Description supports several paragraphs separated by blank lines, but one or two sentences per entry keeps the line readable.
- Pick eight to twelve defining moments rather than every year.
Accessibility
- Milestones are an ordered list, and each title is a heading one level below the section heading (WCAG 1.3.1).
- The connecting line and dots are aria-hidden; the date is real text before each title, so the sequence doesn't depend on the graphics.
- Description text keeps a max-w-xl measure, which keeps long entries to a comfortable line length.
Customizing the code
- Dots use ring-indigo-600 and dates text-indigo-700; swap these for your accent.
- The date column width is the sm:grid-cols-4 split with sm:left-1/4 for the line; change both together.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Milestonesarray