Substitutions
Approve swaps while your shopper is still in store, against a draining decision timer. Each card shows the original struck out beside the suggested pick; approving slides it over and updates the total.
About the Substitutions screen
Parcel and quick-commerce screens: sending a package, live tracking, proof of delivery, substitutions and support. This is one of 10 delivery screens.
How it behaves
It responds to taps and scrolling. On a phone you feel a selection tick when you switch an option, a light tap on buttons and a success pulse when the task completes.
- Has an empty state for when there's nothing to show yet.
- Keeps the main action docked at the bottom while the content scrolls.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/delivery-substitutions copies the screen into screens/delivery/substitutions.tsx along with the 6 components it uses, so the source is yours to edit.
It's shown here in the green accent: wrap it in a different <Accent> to recolour every button, highlight and chart at once. It follows light and dark mode, and runs on iOS and Android, including Expo Go.
Built from
- Animated NumberNumber that moves to each new value as a calm count-up or a roll where only the changed digits turn, set in type or in dot-matrix LEDs whose dots switch on in place. Screen readers announce just the final value, not every step.
- AvatarCircular profile image with fallback initials and a presence dot. An optional mode shows presence on the photo itself, bright when online and faded when away or offline.
- ButtonPill button that presses down under your finger, in eight styles from solid to glass, with a built-in loading state that swaps in place while an action runs.
- IconIcon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
- ImageImage with a placeholder while it loads, a fallback when it fails, and aspect-ratio handling so your layout doesn’t jump when the picture arrives.
- TextThemed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.