LoopConceptInteractive preview
Loop: Choose a ride
An iOS ride-hailing screen with a drawn city map and route, pickup and destination fields with a swap button, and a bottom sheet of ride options, payment, Now or Later timing and a confirm button that names the chosen ride.
- 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-choose-a-ride.json2. Use it
Every prop is optionalapp/page.tsx
import LoopChooseRide from "@/components/loop-choose-ride";
export default function Page() {
return <LoopChooseRide />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A 390px phone frame (44px radius, 10px #111111 border) on a #dfe4ee backdrop, full-bleed below 640px. Ink #111111 text, electric blue #2f5bff accent, -apple-system type, an iOS status bar reading 6:04.
- The backdrop is a drawn SVG city map: #eceef2 land with #e2e5eb building footprints, white streets with grey casing, two wider main roads (Mercer Ave, Canal St), a light blue river with an italic 'WREN RIVER' label on its curve, two green parks and spaced-out neighbourhood labels.
- A blue 5px route with a white casing draws itself from a pulsing blue pickup dot to an ink square destination marker with a white 'Arrive 6:21 PM' chip that follows the chosen ride's drop-off time.
- A white top card (22px radius) holds two 44px grey pickup and destination inputs joined by a blue ring, dotted line and ink square, plus a 40px round swap button whose arrows turn 180 degrees.
- A white bottom sheet (28px top radius, grabber) titled 'Choose a ride' lists Loop Go $14.60 (Cheapest), Comfort $18.40, XL $26.90 and Green $16.20 (Fastest) as 56px rows with a drawn side-view car, seat count, ETA and drop-off time; the chosen row gets a 1.5px blue border on #f3f6ff.
- A grouped card holds a payment row (gradient card chip, 'Personal •••• 4821', blue Change that cycles Personal, Work and Loop Cash) and a 'Pickup time' Now / Later switch with a sliding white pill; Later reveals a row with a - / + stepper in 15-minute steps (6:15 PM to 11:45 PM) and slides the map up.
- A sticky 54px blue button reads 'Confirm Loop Go · $14.60' (or 'Schedule …' for Later), then shows a spinner and 'Finding your driver…' before calling onContinue with the booking.
How it behaves
- Choosing Comfort changes the button to 'Confirm Comfort · $18.40' and the map chip to its drop-off time; arrow keys move the selection between the four rides.
- The swap button exchanges the pickup and destination text and moves the pulsing dot and destination square to the opposite ends of the route.
- Change cycles the payment row through Personal •••• 4821, Work •••• 0937 and Loop Cash $42.10 with a matching card chip colour.
- Choosing Later shows a time stepper starting at 6:30 PM that moves in 15-minute steps, turns the button into 'Schedule …', and shifts the map up so the route stays visible.
- Clearing the destination disables the button and it reads 'Add a destination'.
- With reduced motion the route is drawn instantly, the pickup dot does not pulse and the sheet does not slide in.
