# Flash Sale Bar block

> Full-width dark promo bar with inline copyable discount code chip

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.

- Type: Pro block
- Category: [Coupon](https://web.dev.reui.io/blocks/ecommerce/coupon.md)
- Page: https://web.dev.reui.io/blocks/ecommerce/coupon/coupon-6
- MCP: `get_block("coupon-6")`
- Built with: Button
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## 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

## 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

## When not to use

- A light, low key bar ruled with borders rather than a filled color: use [Free Shipping Bar](https://web.dev.reui.io/blocks/ecommerce/coupon/coupon-5.md) (`get_block("coupon-5")`)
- A status message confirming an action the user already took: use [Alert](https://web.dev.reui.io/components/alert.md) (`get_component("alert")`)

## Install

```bash
npx shadcn@latest add @reui/coupon-6
```

## About Coupon blocks

### 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 [Code Block](https://web.dev.reui.io/components/code-block.md) (`get_component("code-block")`)
- A closing signup or launch band that sells a product with no discount to redeem: use the [CTA blocks](https://web.dev.reui.io/blocks/marketing/cta.md)
- A field where the shopper types a code and watches the order total drop: use the [Shopping Cart blocks](https://web.dev.reui.io/blocks/ecommerce/shopping-cart.md)

### 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

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
