LoopConceptInteractive preview
Loop: Driver arriving
An iOS ride-hailing screen where the driver's car drives along the map to the pickup while the ETA counts down, with the driver, a trip PIN, contact actions, trip details and a cancel sheet with a fee notice.
- Category
- Transportation
- Platform
- iOS
Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this screen
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/screens/loop-driver-arriving.json2. Use it
Every prop is optionalapp/page.tsx
import LoopDriverArriving from "@/components/loop-driver-arriving";
export default function Page() {
return <LoopDriverArriving />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- The same 390px phone frame and drawn city map as 'Choose a ride' (ink #111111, electric blue #2f5bff). A white pill under the status bar reads 'Pickup 214 Alder Street'.
- A top-down car (ride colour, white outline, soft shadow) drives along the blue route to the pulsing pickup dot over about 24 seconds, turning at each corner; the route behind it disappears and an ink '4 min' tag sits above the pickup. With reduced motion the car steps every 3 seconds without gliding.
- A scrolling white bottom sheet: 'Arriving in 4 min' (22px bold) with a blue 6:08 PM chip, a 'Meet Marisol at …' line and a 4px blue progress bar; at the pickup it becomes 'Your driver is here' with a green 'Free wait 2:00' chip counting down each second.
- A driver row: 54px blue-gradient initials avatar with a white 4.92 star badge, name, car colour and model, a drawn side-view car and a monospace plate badge with a 1.5px ink border.
- A #f4f6fb PIN card with four 34x40 white monospace digit tiles, three 64px Message / Call / Share trip tiles that each show a dark toast for about 3 seconds, a Safety toolkit row, and a Trip details card (pickup and drop-off, ride and seats, pickup time, fare and payment from step 1).
- A red 'Cancel ride' button opens a dimmed confirm sheet: warning icon, 'Cancel this ride?', an amber notice that a $5.00 fee applies once the driver has been on the way over 2 minutes (green 'Free to cancel' before that), an ink 'Keep my ride' button and a red 'Cancel ride · $5.00 fee' button.
How it behaves
- On load the car moves along the route toward the pickup, the route shortens behind it and the heading and map tag count down from 4 min to 1 min.
- When the car reaches the pickup the heading reads 'Your driver is here' and the free-wait chip counts down from 2:00 once per second.
- Message, Call and Share trip each show their own toast, announced politely, that disappears after about 3 seconds.
- Cancel ride opens the confirm sheet with focus on 'Keep my ride'; Escape, the backdrop or Keep my ride closes it and the car resumes; Tab stays inside the sheet.
- In the cancel state the notice says a $5.00 fee applies; confirming shows 'Ride cancelled' with a Book again button that restarts the drive.
- With a booking passed in, the trip details show that ride, its price, the pickup, the destination and the payment method.
