Skip to content

Block 234 of 297

Trip Itinerary

A multi-day plan of time-blocked stops on a vertical timeline, with neighborhoods, local tips and a print link.

Puck key
ItineraryBlock
Export
itineraryBlock
React component
<Itinerary />
Path
components/puck/itinerary-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 day-by-day trip plan with time-blocked stops on a vertical timeline. Each day has a large number and title that stay pinned on wide screens while its stops scroll beside them. Stops can carry a neighborhood, a description, a highlighted local tip and a link. On phones the day header sits above its timeline.

  • "48 hours in" or "Weekend in" pages on a visitors bureau site
  • A conference or reunion schedule that mixes sessions with local outings
  • Themed trails, like a family day out or an arts crawl
Writing the content
  • Days take one to five items, each with one to ten Stops. Two or three days of four or five stops reads best.
  • Write Time as visitors think of it, like "9:00 AM" or "Late afternoon"; it sits in a narrow column on wider screens.
  • Use Local tip sparingly for advice a visitor would not find elsewhere; it appears in a tinted note only when filled.
Accessibility
  • The outline nests three levels: the block heading, day titles one level down and stop names one level below that (WCAG 1.3.1). Each day is an article labeled by its title.
  • Stops are an ordered list, timeline dots and day numerals are aria-hidden, and neighborhoods carry a hidden "Neighborhood:" prefix.
  • Stop links append hidden text naming the place, so several "Trail details" links stay distinct, and every link shows a focus outline.
Customizing the code
  • Change indigo- to recolor the day numerals, timeline dots and tip panel.
  • Remove lg:sticky lg:top-8 from the day header if you don't want it pinned while stops scroll.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Image URLtext
  • Image alt texttext
  • Save / print link texttext
  • Save / print linktext
  • Daysarray