Specs

Credit card widget is 99 lines of React with 4 Ingot icons, set in Geist, Geist Mono. It needs no packages beyond React, so it works in Next.js, Vite or Remix as pasted, and its colours can be swapped for your MailPulse tokens.

Component
<CreditCardWidget />
Size
560 × 298 px
Icons
Dots, Copy, Eye, Lock from Ingot Icons
Type
Geist, Geist Mono, 9.5px, 11px, 12px, 13px, 14.5px, Regular and Medium
Colours
#ffffff#6c6c6c#747474#222222#666d80#e8e8e8
Corner radius
2.5px, 4.5px, 5px, 5.5px, 9px
Code
99 lines of TypeScript, React only, inline styles, icons included

Use it

import { CreditCardWidget } from "./credit-card-widget";

export default function Page() {
  return <CreditCardWidget />;
}

Accessibility

Notes for all cards and panels components (category level). Target: WCAG 2.2 AA.

Structure
The card title should be a heading at the right level for your page.
Keyboard
Every action in the card is a button or link, reachable with Tab.
ARIA
Icon-only actions need an aria-label; decorative icons stay aria-hidden.

Before you ship it

  • The generated code draws the design only: <div>s, text and aria-hidden icons, with no buttons, inputs, roles or ARIA. That is why it matches Figma closely, and why you add behaviour when you wire it up.
  • Swap drawn buttons and links for real ones; if the whole card is clickable, use one link and keep other actions outside it.

How we test and what’s known: accessibility statement.

More cards and panels in MailPulse

Copy to Figma (Pro)Copy React code (Pro)Save
Reading devicesMailPulse Pro
Copy to Figma (Pro)Copy React code (Pro)Save
Engagement tiersMailPulse Pro
Copy to Figma (Pro)Copy React code (Pro)Save
RowsMailPulse Pro
Copy to Figma (Pro)Copy React code (Pro)Save
Rows, MobileMailPulse Pro

Guides