# November 10, 2026

New Credit Card module.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

Adds a **Credit Card** module. Renders a card display with auto brand detection, auto number and expiry formatting, a `masked` mode for saved-card lists, and a `glass` variant for translucent surfaces.

### Credit Card [#credit-card]

<ComponentPreview name="credit-card" title="credit-card-demo.tsx" src="examples/credit-card-demo.tsx" previewClassName="h-auto py-8">
<Component />
</ComponentPreview>

#### Installation [#installation]

<Steps>
<Step>
Install the module
</Step>

```bash
npx frakment add credit-card
```

<Step>
Use it in your app
</Step>

```tsx
import { CreditCard } from "@/components/ui/credit-card";
```
</Steps>

#### Minimal usage [#minimal-usage]

```tsx
<CreditCard
  cardNumber="4242424242424242"
  cardHolder="John Doe"
  cardExpiration="1228"
/>
```

Pass raw data - the component handles brand detection, number grouping, and expiry normalization. Use `masked` for saved-card lists and `variant="glass"` for surfaces over gradient or image backgrounds.

See the [Credit Card docs](/docs/modules/credit-card) for variants, brands, anatomy, and API.