Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Road Trip Milestone Path Features Block for React

A shipment's route as one vertical road with five stops that alternate sides, solid up to the truck's stop and dashed beyond, each with its time and a done, now or expected badge.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A route features section for React with Base UI. One road runs down the middle of the block: solid up to the stop the parcel has reached, where a truck chip rides on it with a soft ping, and dashed beyond. Five stops (Picked up, Hub, In transit, Customs, Out for delivery) are bands that sit on one side of the road and alternate from lg, each with what happens there, a done, now or expected badge and a time written relative to the pickup, so it never goes stale. Below lg the road moves to the start edge and every stop is on the same side. It's built from Guides, Badge and Status, and it follows your theme. For tracking pages, logistics, onboarding journeys and any story told as progress along a path.

FAQ

How do I change the stops?

Edit STOPS at the top of the file: each has a name, a sentence, a time and a state (done, current or todo). Keep the states in order: the road is solid above the current stop's marker and dashed below it, and each stop draws its own piece of road, so the line stays continuous whatever the row heights. The "3 of 5 stops" in the header counts the done ones.

How is the road drawn?

In CSS, not SVG: each row draws a thin line above and below its marker, solid in the text colour or dashed with a repeating gradient. Drawing it per row means the solid part ends exactly at the truck however tall the text makes each stop, with no measuring and no script.

How does a screen reader get the route?

The stops are an ordered list named "The route, in order", each with a heading, a sentence and its badge and time, so it reads like a tracking page: "Picked up, Done, Day 1, 08:40". The road, the markers and the truck are decorative and hidden.

How does it fit on a phone?

The road moves to the start edge and every stop sits beside it on the same side, one under the next, with the same badge and time. Nothing is hidden; the alternating layout only applies from lg.

What happens in right-to-left languages?

The road and the stops mirror: the road sits at the end edge on a phone, and the alternation starts from the other side on a desktop. Times are isolated so their digits stay in order.

What moves, and what happens with reduced motion?

The header fades up once on load, and a soft ring pings around the truck chip. With reduced motion the fade is off and the ring stays still.

  • Pro

    A two-line transit map for a customer-journey tool: six stations, one interchange where the Setup and Team lines meet, and a popover on every station.

  • Pro

    A CI pipeline drawn as five stages joined by chevrons, each with its time and status, over a band that measures the pipeline's impact with rolling numbers.

  • Pro

    A features section for a launch-readiness tool: five milestones in an accordion, each a grouped checklist of real checkboxes, with every milestone locked until the one before it is complete.

  • Pro

    A features section that tells five years of an edge runtime as year tabs on one rail: what shipped, a cold start before and after in rolling digits, and a five-bar history of regions.

  • Pro

    Timeline Hero

    Updates and timelines

    A start-aligned hero with a headline, a Shine Button and an outline action over a closing band of four milestone rows on a vertical hairline, shipped, current and planned.

  • Pro

    A day view for a team planner: three features as a numbered list beside a framed 9 to 5 day with events placed by time and a Now line with a pulsing dot.