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.

Best for: An inverted strip in the foreground color for a weekend sale, with a lightning bolt icon and a copy button in the page color

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 light, low key bar ruled with borders rather than a filled color: use the Free Shipping Bar block
  • A status message confirming an action the user already took: use the Alert component
  • 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

  • PROMO.headline holds the offer and its deadline as one string; no timer reads it, so the sale end never updates
  • Dismiss only sets dismissed in component state, so a reload brings the bar back; store it if it must stay closed
  • The dismissed branch swaps the bar for a Promo bar dismissed note and a Show again button; remove it for production
  • 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/coupon-6.md
MCPget_block("coupon-6")
Installnpx shadcn@latest add @reui/coupon-6
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in the Flash Sale Bar Block

  • Button

Dependencies

  • cn

Shadcn Flash Sale Bar Block

Full-width dark promo bar with inline copyable discount code chip. Part of the ReUI Shadcn eCommerce Coupon blocks collection.

Dark full-width announcement strip with offer headline, dashed promo code chip, copy-to-clipboard button with copied feedback, and dismiss control. Built with shadcn Button. For flash sales, discount campaigns, promo banners, sale alerts.

It is composed from Button, so every part of it is a primitive you can restyle with your own design tokens.

What You Can Build With the Flash Sale Bar Block

  • Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
  • Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
  • Combine it with the other Shadcn eCommerce Coupon blocks to assemble a full screen instead of a single section.

All Shadcn eCommerce Coupon Blocks

The rest of this category, each on its own page with 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

Related Shadcn eCommerce Block Categories

  • Category Card (6) Category cards with featured products, banners, and subcategory navigation.
  • Checkout (7) Checkout flows with shipping details, payment forms, and order confirmation steps.
  • Comparison (6) Product comparison tables with side-by-side feature and specification layouts.
  • Filter Sidebar (7) Filter and facet sidebars for refining product searches by price, size, and attributes.
  • Product Card (10) E-commerce product cards with images, pricing, variants, and add-to-cart actions.
  • Product Detail (6) Product detail pages with image galleries, specifications, and purchase options.

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

When should I use the Flash Sale Bar block?

Use it for an inverted strip in the foreground color for a weekend sale, with a lightning bolt icon and a copy button in the page color.

The Coupon category fits:

  • 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

For a light, low key bar ruled with borders rather than a filled color, use the Free Shipping Bar block. For a status message confirming an action the user already took, use the Alert component. For a source snippet or terminal command shown with its own copy button, use the Code Block component. For a closing signup or launch band that sells a product with no discount to redeem, use the CTA blocks. For a field where the shopper types a code and watches the order total drop, use the Shopping Cart blocks.

What is the Flash Sale Bar block built with?

Flash Sale Bar uses Button. Installing the block through the ReUI registry pulls those dependencies in for you.

Can I restyle the Flash Sale Bar block?

Yes. It reads your design tokens, so switching style, radius, base color, font, or icon library in the customizer restyles it without touching the markup.

How should I use Shadcn coupon blocks in a real project?

Treat them as structured starting points. Keep the layout, hierarchy, and interaction ideas that work, then replace placeholder content, data wiring, and business logic with your own product requirements.
PreviousFree Shipping Bar

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
  4. Flash Sale Bar
MarkdownShare

Shadcn Flash Sale Bar

Dark full-width announcement strip with offer headline, dashed promo code chip, copy-to-clipboard button with copied feedback, and dismiss control. Built with shadcn Button. For flash sales, discount campaigns, promo banners, sale alerts.