Skip to content

Card Brand

Pro

Shows the badge of a card network: Visa, Mastercard, American Express, UnionPay, and 10 more. Each badge has its own fill, so it shows in light and dark.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Card Brand needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
6
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Say the network in text next to the badge, or give the badge a name with aria-label and role="img".

saved-card.tsx

CardBrand

<div>
PropTypeDefaultDescription
brandRequirednull"amex""diners""discover""elo""hipercard""jcb""maestro""mastercard""mir""rupay""troy""unionpay""verve""visa"—The network (#/lib/card-number-model), or null for the generic card.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it next to the last four digits of a saved card.
  • Use it in the network slot of a Credit Card.
  • Pass null for an unknown network: it shows the generic card.
  • Set the height with className (h-6). The width follows at 38:24.
  • For a large card face with the number and the holder, use a Credit Card.
  • For a status or a count, use a Badge.

The badge is aria-hidden by default, because the text next to it says the brand.

With aria-label it is not hidden: add role="img" so screen readers read the name.

  1. AddedCard Brand.
Open the release