Offer Modal 2 - Coupon reveal with copy-to-clipboard

A centered dialog with a gift icon and a dashed, ticket-style coupon whose code is blurred until the visitor clicks "Reveal code", then unblurs with a copy button and checkout link. Use it for no-gimmick promotions where you want a moment of delight without a spin wheel.

About Offer Modal 2

A centered dialog with a gift icon and a dashed, ticket-style coupon whose code is blurred until the visitor clicks "Reveal code", then unblurs with a copy button and checkout link. Use it for no-gimmick promotions where you want a moment of delight without a spin wheel.

Offer Modal 2 is a free offer modal block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 133 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • modal
  • coupon
  • reveal
  • promo-code
  • copy
  • discount

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/offer-modal-02

Dependencies installed automatically: lucide-react, motion.

Uses: button, dialog, reveal, use-reduced-motion, utils.

Usage

import OfferModal02 from "@/components/blocks/offer-modal-02"

export default function Page() {
  return <OfferModal02 />
}

FAQ