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 12, 2026

Add holo-card and fix credit-card to remove an internal brand dependency.

Two library changes ship today. A new card with a procedural foil that reacts to pointer tilt and device motion, and a fix for the credit card that removes an internal import so it installs cleanly.


Holo Card

holo-card-demo.tsx
"use client";

import { FrakmentMark } from "@/components/site/brand";
import { HoloCard } from "@/components/ui/holo-card";

export function HoloCardDemo() {
  return (
    <HoloCard className="max-w-xs" logo={<FrakmentMark />} preset="bursts" />
  );
}

Two presets ship: bursts (default) and cosmos. Card mode accepts a logo (URL, text, or any ReactNode) and an optional chip override. Image mode (variant="image" or a HoloCardImage child) renders artwork under the foil.

Installation

Install

$ npx frakment@latest add holo-card

Minimal usage

tsx
<HoloCard logo="/logo.svg" preset="bursts" />
tsx
<HoloCard variant="image" preset="cosmos">
  <HoloCardImage alt="Card" src="/card.avif" />
</HoloCard>

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>
  );
}

CreditCardIssuer no longer imports the site-internal @/components/brand. Pass a logo or children to render a mark; omitting both renders nothing. Fresh installs of credit-card no longer fail with a module-not-found error.

Installation

Update

$ npx frakment@latest add credit-card

Minimal usage

tsx
<CreditCard>
  <CreditCardHeader>
    <CreditCardIssuer logo={<MyLogo />} />
    <CreditCardBrand brand="visa" />
  </CreditCardHeader>
  <CreditCardNumber value="4242424242424242" />
  <CreditCardFooter>
    <CreditCardHolder value="John Doe" />
    <CreditCardExpiry value="1228" />
  </CreditCardFooter>
</CreditCard>

Button

button-anchor.tsx
"use client";

import Link from "next/link";

import { Button } from "@/components/ui/button";

export function ButtonAnchor() {
  return (
    <div className="flex flex-wrap items-center gap-2">
      <Button href="/docs" variant="secondary">
        Static link
      </Button>
      <Button as={Link} href="/docs/components/button" variant="outline">
        Router link
      </Button>
    </div>
  );
}

Pass href to render the button as a native anchor. <Button href="/docs">Read the docs</Button> produces a link without a wrapper. For client-side navigation with Next.js, React Router, or TanStack Router, apply the button styles with buttonVariants and render the router link component. The asChild prop is removed from the published registry file. The button entry no longer depends on radix-ui, so npx frakment add button installs only class-variance-authority. Migrate existing usages by replacing <Button asChild><a href="/x">Text</a></Button> with <Button href="/x">Text</Button>. Use anchorRef to access the underlying anchor element; ref targets the <button> element only. A new motion prop overrides the default Tailwind transition. Pass "off" to disable, or a value like "slow easeOut" or "150 cubic-bezier(...)". prefers-reduced-motion: reduce overrides every value. Components that drive animation with GSAP, Framer Motion, or the Web Animations API do not need any extra prop. The component detects the external inline style write and disables its own transition.

Installation

Update

$ npx frakment@latest add button

Minimal usage

tsx
<Button href="/docs">Read the docs</Button>