DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Category Card6
Checkout7
Comparison6
Coupon6
  • Promo Code Hero
  • Filterable Coupons
  • Member Early Access
  • Offer Terms Card
  • Free Shipping Bar
  • Flash Sale Bar
Filter Sidebar7
Product Card10
Product Detail6
Product Grid6
Receipt6
Review6
Shopping Cart7
Wishlist6
Shop Hero8

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.

When to use

  • A single sale or member offer: headline, a promo code to copy, expiry, fine print and a shop button
  • A promotions page listing several codes, filtered by offer type, each with its own copy button
  • A dismissible full width strip that announces one sale or shipping perk and its code

When not to use

  • A source snippet or terminal command shown with its own copy button: use the Code Block component
  • A closing signup or launch band that sells a product with no discount to redeem: use the CTA blocks
  • A field where the shopper types a code and watches the order total drop: use the Shopping Cart blocks

Agent notes

  • handleCopy flips to Copied even when navigator.clipboard is missing or the write rejects; add a fallback before you rely on it
  • Every page.tsx wraps the offer in a min-h-svh main; drop that wrapper when the offer sits inside an existing page
  • The code value is a plain string copied as is; nothing validates it, applies it to an order or records a redemption
Markdownhttps://web.dev.reui.io/blocks/ecommerce/coupon.md
MCPsearch({ query: "coupon", type: "block", category: "coupon" })
Full index for agents:llms.txtReUI MCP setup

Shadcn Coupon Blocks: Promo Code Inputs and Discount Badges

A coupon field has four states and most shops ship one. These blocks ship all of them: idle, applying, applied with the saving shown, and invalid with a reason, plus the badge and banner that announce an offer before the cart.

All Coupon Blocks

Open any block on its own page for a live preview, the components it is built from, and the install command.

  • Promo Code Hero Split promo hero with copyable coupon code, expiry, and campaign image
  • Filterable Coupons Category-filterable coupon grid with one-click copy promo codes
  • Member Early Access Hero coupon banner with copyable code and full-bleed image
  • Offer Terms Card Coupon card with copyable promo code and discount offer terms
  • Free Shipping Bar Full-width promo announcement bar with copyable discount code
  • Flash Sale Bar Full-width dark promo bar with inline copyable discount code chip

What the Coupon blocks cover

eCommerce screens, each a full block with fixture data:

  • Split promo hero with copyable coupon code, expiry, and campaign image
  • Category-filterable coupon grid with one-click copy promo codes
  • Hero coupon banner with copyable code and full-bleed image
  • Coupon card with copyable promo code and discount offer terms
  • Full-width promo announcement bar with copyable discount code
  • Full-width dark promo bar with inline copyable discount code chip

Built from

  • shadcn/ui components Button, Item, Card, the same components your project already owns.
  • Both twins, every style Each block ships on Base UI and on Radix, in 8 design styles, and names every part it composes on its page.

All Shadcn Block Groups

Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.

  • Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
  • Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
  • Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
  • Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
  • Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
  • Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
  • Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.

Frequently Asked Questions

Does the block validate codes?

It validates the shape locally and hands the code to your handler; the applied and invalid states render from the handler's answer.

How do I install a Coupon block?

Open the block on its page, copy the install command (the shadcn CLI with the @reui registry and your license key) or the AI prompt, and run it in your project. The block, its fixtures and every ReUI and shadcn dependency land in one command.

Is a license needed?

Coupon blocks are part of ReUI Pro: one payment, lifetime updates, every block in every style. The ReUI primitives and the free examples they build on install with no license.

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. eCommerce
  3. Coupon
Markdown

Shadcn Coupon Blocks: Promo Code Inputs and Discount Badges

Promo codes done properly: these 6 blocks cover the input with its apply, applied and invalid states, the discount badge and the offer banner.