Restaurant Detail
Restaurant menu with popular dishes, tagged menu rows and section tabs that follow your scroll. As you add dishes, a cart meter fills toward a discount and the total drops once you cross it.
About the Restaurant Detail screen
Food ordering and recipes: restaurant pages, carts, live courier tracking and grocery lists. This is one of 8 food screens.
How it behaves
It responds to taps, scrolling and pinch to zoom. On a phone you feel a light tap on buttons, a selection tick when you switch an option, a firmer tap on bigger actions and a success pulse when the task completes.
- The header reacts to scrolling instead of sitting on top of the content.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/food-restaurant-detail copies the screen into screens/food/restaurant-detail.tsx along with the 6 components it uses, so the source is yours to edit.
It's shown here in the orange 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
- Add to Cart ButtonAdd button that becomes its own result: busy dots while adding, a check and “In bag”, then a quantity stepper with a trash icon at one. A compact version stretches open over product photos.
- 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.
- GlassGlass surface for cards and controls: system glass on newer iOS, real refraction on the web and a frosted look elsewhere. Light can gather under your finger, and panes merge on newer iOS and the web.
- 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.
- LightboxPhoto gallery where any tapped photo grows out of its exact tile into a full-screen viewer, then flies back into the tile of whichever photo is showing when you let it go.
- 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.