Promo code field with an Apply button and inline success or error messages. The demo validation is easy to replace with your own check in React.
pnpm dlx shadcn@latest add "https://ui.minidev.pro/r/coupon-input.json"