# Payment Card (Andromeda Pro)

Payment Card is a component of the Premium Andromeda Pro design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

Shows a payment card as the card itself, with its name, last four digits and expiry, and tilts toward the pointer.

- Design system: [Andromeda Pro](https://aicanvas.me/design-systems/andromeda-pro.md)
- License: Premium (proprietary)
- Install slug: `andromeda-pro-payment-card`
- Page: https://aicanvas.me/design-systems/andromeda-pro/payment-card

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-pro-payment-card
```

Requires Premium. Without a Premium token the command writes a placeholder (a `PremiumLocked` notice) instead of the component.

Every Andromeda Pro component at once: `npx shadcn@latest add @aicanvas/andromeda-pro`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda-pro/components/PaymentCard.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { PaymentCard } from '@/components/aicanvas/andromeda-pro/components/PaymentCard'
```

## Example

```tsx
import { PaymentCard } from '@/components/aicanvas/andromeda-pro/components/PaymentCard'

<PaymentCard kind="Business debit" label="Operations" last4="4821" expiry="09/29" tone="steel" />
```

## Variants

- `tone`: graphite, steel, ember or brand (default 'graphite')

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand?` | `React.ReactNode` |  | The issuer's name or lockup, top left, in the primary ink. None by default. |
| `kind?` | `string` |  | What the card is ("Debit", "Credit", "Virtual"), top right in the meta ink. |
| `label?` | `string` |  | The card's own name ("Everyday", "Travel"), over the number. |
| `last4?` | `string` |  | The last four digits; the number is shown masked as "•••• 4821". |
| `expiry?` | `string` |  | The expiry ("08/29"), bottom right. |
| `tone?` | `'graphite' \| 'steel' \| 'ember' \| 'brand'` | `'graphite'` | The lacquer: graphite (neutral with a trace of brand), steel (the blue end of the ramp), ember (the system's contrast orange, pinned to its token in both themes) or brand (the deep brand lacquer). |
| `interactive?` | `boolean` | `true` | Tilt toward a mouse pointer with a light across the face, a lit rim and one rung of lift on hover. Off under reduced motion and on touch. |
| `dimmed?` | `boolean` | `false` | The face recedes to half strength, for a card that sits behind another. |
| `raised?` | `boolean` | `false` | One rung up the elevation ladder, for the card on top of a stack. |
| `width?` | `number \| string` |  | The card's width (a number of px or a CSS length); the height follows the card ratio. Fills its container by default. |

## Remix prompt

Only when the user wants Payment Card rebuilt from scratch instead of installed: the public part of its remix prompt is in the Remix panel at https://aicanvas.me/design-systems/andromeda-pro/payment-card.

## More Andromeda Pro components

- [Planet](https://aicanvas.me/design-systems/andromeda-pro/planet.md)
- [Popover](https://aicanvas.me/design-systems/andromeda-pro/popover.md)
- [Pricing Card](https://aicanvas.me/design-systems/andromeda-pro/pricing-card.md)
- [Progress Bar](https://aicanvas.me/design-systems/andromeda-pro/progress-bar.md)
- [Prompt Input](https://aicanvas.me/design-systems/andromeda-pro/prompt-input.md)
