# Engraved Card

Metal membership or bank card with a topographic contour pattern in metals from graphite to lime, a contact chip, an optional printed wordmark and horizontal or vertical orientation. ISO card proportions.

Component · Card · https://01orbital.dev/docs/components/engraved-card

## Installation

```bash
npx shadcn@latest add @01orbital/engraved-card
```

## Usage

```tsx
import { EngravedCard } from "@/components/card/engraved-card"

export default function Demo() {
  return (
    <EngravedCard
      from="sulaco"
      metal="graphite"
      wordmark="sulaco"
      label="A graphite Sulaco card"
      className="w-full max-w-sm"
    />
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/engraved-card-demo
```

## API reference

A metal card in ISO 7810 bank-card proportions, for a pricing or membership display: a seeded contour pattern, a chip and an optional wordmark. Set its width with `className`; its height follows.

Without `label` it is decorative and hidden from assistive tech; with one, it is announced as an image of that name. The pattern is painted on a canvas in the browser after the card mounts.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `from` | `string` |  | The seed for the contour pattern: any string, such as a name or id. Different strings draw different patterns. |
| `metal?` | `"gold" \| "lime" \| "silver" \| "rose" \| "lilac" \| "graphite" \| "obsidian"` | `"graphite"` | The metal: `graphite` (the default), `obsidian`, `silver`, `gold`, `rose`, `lilac` or `lime`. The wordmark takes dark ink on the light metals and light ink on the dark ones. |
| `orientation?` | `"horizontal" \| "vertical"` | `"horizontal"` | `horizontal` is a landscape card; `vertical` is portrait, with the wordmark and chip moved to suit. |
| `wordmark?` | `string` |  | Text printed on the metal in the display font, near the top-left corner, or the bottom-left when vertical. |
| `label?` | `string` |  | Names the card for screen readers, as an image. Without it, the card is hidden from assistive tech. |
| `lines?` | `number` | `18` | How many contour levels are traced over the metal as thin white lines. 0 draws none. |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Engraved](https://01orbital.dev/docs/components/engraved)

npm: `cn`

## Used in blocks

- [Joined Rewards Tier Pricing](https://01orbital.dev/docs/blocks/pricing-carousel-01)
