Specs

Add card modal is 130 lines of React with 9 Ingot icons, set in Geist. 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 Montra tokens.

Component
<AddCardModal />
Size
494 × 634 px
Icons
Calendar, Check, Chevron down, Credit card, Info circle, Lock, User, World, Close (X) from Ingot Icons
Type
Geist, 10px, 11px, 12px, 13px, 15.5px, 16.5px, 17.5px, Regular and Medium and Bold
Colours
#ffffff#222222#6c6c6c#e8e8e8#4996fe#6b6b6b
Corner radius
2.5px, 3.5px, 4.5px, 7.5px, 9px
Code
130 lines of TypeScript, React only, inline styles, icons included

Use it

import { AddCardModal } from "./add-card-modal";

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

Accessibility

Notes for all modals components (category level). Target: WCAG 2.2 AA.

Keyboard
Escape closes; Tab stays inside while open; focus returns to the button that opened it.
ARIA
role="dialog" and aria-modal="true", labelled by the title (aria-labelledby).
Focus
Move focus to the first field or the dialog itself on open.

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.
  • Wrap it in a dialog primitive (the free Loopo Dialog uses Base UI and does all of the above).
  • Make the close icon a <button aria-label="Close">, and footer actions real buttons.

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

More modals in Montra

Copy to Figma (Pro)Copy React code (Pro)Save
Invite modalMontra Pro
Copy to Figma (Pro)Copy React code (Pro)Save
Footer modalMontra Pro
Copy to Figma (Pro)Copy React code (Pro)Save
Copy to Figma (Pro)Copy React code (Pro)Save
Header modalMontra Pro

Guides