Skip to main content
Clever Ops

Gift Voucher Card

A voucher presented like the gift itself, certificate hairlines, a light serif denomination display, a from-someone-lovely line, and a purchase CTA. E-commerce in the beauty voice.

Preview & code

Loading Gift Voucher Card preview

Installation

pnpm dlx shadcn@latest add @cleverui/gift-voucher-card

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { GiftVoucherCard } from '@/components/blocks/gift-voucher-card'
Exampletsx
import { GiftVoucherCard } from '@/components/blocks/gift-voucher-card'

export default function GiftVoucherCardDemo() {
  return (
    <GiftVoucherCard
      eyebrow="Gift vouchers"
      heading="Give someone an afternoon"
      denominations={['$75', '$150', '$250']}
      fromLine="From someone lovely"
      cta={{ label: 'Purchase a voucher', href: '#voucher' }}
      note="Delivered by email within the hour · valid for three years"
    />
  )
}

API reference

GiftVoucherCard accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Gift vouchers'
headingstring'Give someone an afternoon'
denominationsstring[]['$75', '$150', '$250']preformatted amounts shown as selectable pills
fromLinestring'From someone lovely'sentiment line set in italic serif on the voucher face
cta*{ label: string; href: string }
notestring'Delivered by email within the hour · valid for three years'

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Gift Voucher Card component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/gift-voucher-card`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Gift Voucher Card require?

Gift Voucher Card uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Gift Voucher Card to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services