Promo Codes
Apply discounts from a wallet of perforated coupon tickets, led by a big ticket showing your total before and after. Applying a code tears its stub and stamps it; codes that can’t apply say why.
About the Promo Codes screen
A full shopping flow for React Native and Expo: browsing, product pages, cart, checkout, payment, orders and returns. This is one of 31 ecommerce screens.
How it behaves
It responds to taps and scrolling. On a phone you feel a light tap on buttons, a success pulse when the task completes and a warning buzz when something can't be done yet.
- Keeps fields and actions above the on-screen keyboard.
- 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/ecommerce-promo-codes copies the screen into screens/ecommerce/promo-codes.tsx along with the 6 components it uses, so the source is yours to edit.
It's shown in neutral ink: wrap it in an <Accent> to give it your brand colour. It follows light and dark mode, and runs on iOS and Android, including Expo Go.
Built from
- 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.
- CountdownLive countdown with rolling digits, inline or as blocks that brighten through the final ten seconds. At zero it can celebrate and show your result, or quietly fade if time ran out.
- Coupon InputPromo and gift code field that turns into a perforated ticket showing your saving when the code works, and explains why when it doesn’t. The ticket also works on its own for coupon wallets.
- 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.
- InputLabelled text field that lights up on focus, draws a check when you mark the value as good, and gives one quick flicker on error. Supports helper text, icons and a fill-as-you-type underline.
- 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.