Search

Search components and flows across the catalog

LoopConceptInteractive preview

Loop: Book a ride

A clickable two-step iOS ride-hailing flow: choose a ride, payment and pickup time on the map, then watch the driver arrive with that ride and price carried forward.

Category
Transportation
Platform
iOS
Steps
2

Interactive flowClick through it, resize it, or switch states. It’s real UI, not a screenshot.

Step by step

2 steps, start to finish

Every screen in this flow, in the order people see it.

  1. Loop: Choose a ride
    Step 1Loop: Choose a ride
  2. Loop: Driver arriving
    Step 2 · FinishLoop: Driver arriving

Use this flow

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/flows/loop-book-a-ride.json

2. Use it

Every prop is optional
app/page.tsx
import FlowLoopRide from "@/components/flow-loop-ride";

export default function Page() {
  return <FlowLoopRide />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. Plays 'Loop: Choose a ride' then 'Loop: Driver arriving'. Confirming a ride moves to step 2, whose sheet, driver row and trip details show the chosen ride, its price, the pickup and destination, the payment method and, for a Later booking, the scheduled time.
  2. Cancel ride on step 2 (after its confirm sheet) returns to step 1 with the same ride, addresses, payment and pickup time still selected.
  3. A dark #0e1018 dock along the bottom edge (4.5rem tall; the screen above fills the rest of the viewport) shows 1 Choose and 2 Arriving with the current step highlighted, light-blue #7d9bff step dots, a Back arrow and a Restart button.

How it behaves

  • Choosing XL and confirming opens step 2 with 'XL · 6 seats', '$26.90' and a grey van in the driver row.
  • Choosing Later at 7:00 PM shows 'Scheduled for 7:00 PM' and 'Today, 7:00 PM' on step 2.
  • Cancel ride, then confirming, returns to step 1 with the same ride still selected; Back does the same without the sheet.
  • Restart returns to step 1 with the default Loop Go ride and Now selected.
  • The step dock never covers the confirm button or sheet content at 375px or in the 390x844 phone frame.