Add Card Form

Compact payment form for card number, expiry and CVC with correct autocomplete hints, numeric input mode and a full width save button. Ready for your processor.

src/registry/ui/add-card-form.tsx/r/add-card-form.json

Installation#

bash
npx shadcn@latest add @minidev/add-card-form

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/add-card-form.json

Usage#

tsx
import { AddCardForm } from "@/components/ui/add-card-form"

export function Example() {
  return <AddCardForm />
}

API reference#

AddCardForm props
PropTypeDefault
classNamestring-
onSubmit() => void-

Dependencies#

npm

React only
All pricing and billing components