# Gift card

> The values of `gift-card` inside `smootify-cart [cart="gift-card"]` or `gift-card-balance`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/attributes/gift-card  
Updated: 2026-10-21

## Where it can go

- **Inside any of:** `smootify-cart [cart="gift-card"]`, [`gift-card-balance`](https://www.smootify.io/docs/astro/reference/elements/gift-card-balance).
- On text.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `gift-card="code"` | Code | The end of the code, such as •••• 4F2A |
| `gift-card="amount"` | Amount | The amount the card covers on this cart; inside smootify-cart [cart=“gift-card”] |
| `gift-card="balance"` | Balance | What is left on the card, in the form’s Success message. A card used up shows the form’s error, as an unknown code; inside gift-card-balance |
