Payment Method Card

A saved card row showing the card brand, last four digits and expiry date in monospace, with an Edit button. Fits the payment methods area of billing.

src/registry/ui/payment-method-card.tsx/r/payment-method-card.json

Installation#

bash
npx shadcn@latest add @minidev/payment-method-card

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/payment-method-card.json

Usage#

tsx
import { PaymentMethodCard } from "@/components/ui/payment-method-card"

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

API reference#

PaymentMethodCard props
PropTypeDefault
brandstring"Visa"
last4string"4242"
expstring"09/28"
classNamestring-

Dependencies#

npm

React only

Built from

All pricing and billing components

Learn more