Skip to content

shadcn.io is an independent project built on shadcn/ui

Gift Card Product Card Block for Radix UI

A gift card face that fills in live from amount chips, an Other box limited to $10 to $500, an optional first name and an Email or Print choice, with one Add to bag button and no delivery details.

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Sell a gift card that shows what it will say with this gift card product card for React with Radix UI. A drawn card face sits in its own corner-marked frame at the start; at the end are amount chips for $25, $50 and $100, an Other chip that enables a box for a whole amount from $10 to $500, an optional first name and an Email or Print choice. The face reads "$50", "For Mira" and "By email" as you type, and the single Shine Button says the amount and turns into "Added" with an Undo. A refused amount is explained in words under the box. There is no delivery date, address or card form. Guides mark the frame. For stores selling gift cards on a product page.

FAQ

How does the face update?

It is plain markup reading three pieces of state: the amount, the name and the way. It is hidden from assistive tech, and a visually hidden caption gives the same sentence so nothing is only drawn.

What does Other accept?

A whole number from 10 to 500 (LEAST, MOST). Anything else is refused in words under the box and when you press Add; the chips always work. The box is always present and disabled for the presets, so nothing moves.

What stays local, and how do I wire it for real?

The choices and the bag are page state; no email or print page is made. Nothing is stored, charged or sent. Send the amount, the first name and the delivery way to your gift-card API, then collect the recipient's address and date on the next step.

How does it look on a phone?

The face comes first, then the chips, the boxes and the Add button in one column.

Is it accessible?

The chips and the delivery choice are named groups, the boxes have visible labels, and the amount problem is linked to its box. The status line announces each change.