- Accordion
- Attachment
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Code Block
- Collapsible
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Label
- Marker
- Message
- Number Flow
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Slider
- Sonner
- Spinner
- Switch
- Tooltip
- Separator
- Sheet
- Tabs
- Textarea
- Toggle
- Toggle Group
- Trace
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: New module.
- Credit Card: Fix internal brand dependency.
Holo Card
"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
$ bunx --bun frakment@latest add holo-card$ npx frakment@latest add holo-card$ pnpm dlx frakment@latest add holo-card$ yarn dlx frakment@latest add holo-card
Minimal usage
<HoloCard logo="/logo.svg" preset="bursts" /><HoloCard variant="image" preset="cosmos">
<HoloCardImage alt="Card" src="/card.avif" />
</HoloCard>Credit Card
4•2•4•2•  4•2•4•2•  4•2•4•2•  44224422
Card holder
John Doe
Expires
12/28
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
$ bunx --bun frakment@latest add credit-card$ npx frakment@latest add credit-card$ pnpm dlx frakment@latest add credit-card$ yarn dlx frakment@latest add credit-card
Minimal usage
<CreditCard>
<CreditCardHeader>
<CreditCardIssuer logo={<MyLogo />} />
<CreditCardBrand brand="visa" />
</CreditCardHeader>
<CreditCardNumber value="4242424242424242" />
<CreditCardFooter>
<CreditCardHolder value="John Doe" />
<CreditCardExpiry value="1228" />
</CreditCardFooter>
</CreditCard>Button
"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
$ bunx --bun frakment@latest add button$ npx frakment@latest add button$ pnpm dlx frakment@latest add button$ yarn dlx frakment@latest add button
Minimal usage
<Button href="/docs">Read the docs</Button>