Search

Search components and flows across the catalog

BasilConceptInteractive preview

Basil: Grocery checkout

A clickable two-step grocery flow: edit the basket, pick a slot and check out, then follow the courier on a live map to a delivered rating.

Category
Checkout
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. Basil: Your basket
    Step 1Basil: Your basket
  2. Basil: Order on the way
    Step 2 · FinishBasil: Order on the way

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/basil-grocery-checkout.json

2. Use it

Every prop is optional
app/page.tsx
import FlowBasilCheckout from "@/components/flow-basil-checkout";

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

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. Plays the basket screen, then the order-tracking screen. Checkout carries the items, the total actually charged (including FRESH10 and free delivery) and the booked slot forward; the tracking screen's summary, ETA slot pill and courier timeline use them.
  2. A dark #08110c dock along the bottom edge (4.5rem tall; the screen above fills the rest of the viewport) shows 1 Basket and 2 Tracking with the current step highlighted and a Basil-green #6fd39c step dot and focus ring, a Back arrow and a Restart button.
  3. Back from Tracking, or Order again on the delivered screen, returns to the basket with the same items; Restart returns to the original five-item basket.

How it behaves

  • Applying FRESH10 and checking out shows the same total on the tracking screen's 'paid' summary line.
  • Booking Saturday 2–3 pm (the greener slot) shows 'In your 2–3 pm slot' and 'Tomorrow, 2–3 pm · Greener' on the tracking screen.
  • Back and Order again return to the basket with the checked-out items; Restart shows the default basket and 'Checkout · $34.08'.
  • The step dock never covers the checkout button or any content at 375px.