For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
FrakmentFrakment

November 10, 2026

New Credit Card module.

Adds a Credit Card module. Renders a card display with auto brand detection, auto number and expiry formatting, a masked mode for saved-card lists, and a glass variant for translucent surfaces.

Credit Card

Frakment
Visa

Card holder

John Doe

Expires

12/28

credit-card-demo.tsx
import { FrakmentMark } from "@/components/site/brand";
import {
  CreditCard,
  CreditCardBrand,
  CreditCardExpiry,
  CreditCardFooter,
  CreditCardHeader,
  CreditCardHolder,
  CreditCardIssuer,
  CreditCardNumber,
} from "@/components/ui/credit-card";

export function CreditCardDemo() {
  return (
    <CreditCard>
      <CreditCardHeader>
        <CreditCardIssuer
          logo={<FrakmentMark className="size-5 sm:size-6" />}
        />
        <CreditCardBrand brand="visa" />
      </CreditCardHeader>
      <CreditCardNumber value="4242424242424242" />
      <CreditCardFooter>
        <CreditCardHolder value="John Doe" />
        <CreditCardExpiry value="1228" />
      </CreditCardFooter>
    </CreditCard>
  );
}

Installation

Install the module

$ npx frakment add credit-card

Use it in your app

tsx
import { CreditCard } from "@/components/ui/credit-card";

Minimal usage

tsx
<CreditCard
  cardNumber="4242424242424242"
  cardHolder="John Doe"
  cardExpiration="1228"
/>

Pass raw data - the component handles brand detection, number grouping, and expiry normalization. Use masked for saved-card lists and variant="glass" for surfaces over gradient or image backgrounds.

See the Credit Card docs for variants, brands, anatomy, and API.