Metal Button
metal-buttonA button with a chrome rim whose reflections travel slowly round it, and a glint that crosses the face on hover. Plain CSS in a server component, still for reduced motion.
import { ArrowRight, Sparkles } from "lucide-react";
import { MetalButton } from "@/components/forme/metal-button/metal-button";
export function MetalButtonDemo() {
return (
<div className="flex flex-wrap items-center justify-center gap-4">
<MetalButton>
Get started
<ArrowRight aria-hidden />
</MetalButton>
<MetalButton variant="primary">
<Sparkles aria-hidden />
Generate
</MetalButton>
<MetalButton size="small" disabled>
Unavailable
</MetalButton>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Usage
import { MetalButton } from "@/components/forme/metal-button/metal-button";
<MetalButton>Get Pro</MetalButton>When to use
Reach for it
- The one action a page is built around, like the main call to action on a pricing or landing page.
Use something else
- More than one per screen: a second metal button makes neither the main action.
- Dense product UI. Use the primary
Buttonthere.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
MetalButton
A button machined from metal, for the one action a page is built around.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'primary' | 'chrome' | "chrome" | chrome is brushed metal throughout; primary sets the accent in a chrome rim. |
size | 'small' | 'medium' | "medium" | |
duration | number | 8 | Seconds for the reflections to travel once round the rim. |
Also takes every prop of <button> attributes.
Accessibility
- It is a real
<button>with the usual focus ring, so keyboard and screen reader behaviour is a button's. - The rim and glint layers are decorative and hidden from assistive technology.
Motion
- The rim's reflections turn slowly round it;
durationsets one revolution, 8 seconds by default. - Hover lifts the face and press sinks it instantly — only the light moves.
- Reduced motion holds the reflections still and drops the glint.
Related


Confirm Button
A destructive button that grows into its own confirmation on a spring, so the question appears where you are looking. Focus lands on Cancel, Esc or clicking away disarms it, and the confirm button shows a spinner while the action runs.
motion

Dynamic Island
A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.
motion

Marquee
A seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.
motion