Skip to Content

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.

Installation

pnpm dlx shadcn@latest add @01orbital/engraved-card

Usage

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:

pnpm dlx 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

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

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

Used in blocks

One block is built with Engraved Card.

Last updated on