Skip to content
Browse docs and components

Metal Button

metal-button

A 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.

Responsive

Install

$npxshadcnadd@forme/metal-button

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 Button there.

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.

PropTypeDefaultDescription
variant'primary' | 'chrome'"chrome"chrome is brushed metal throughout; primary sets the accent in a chrome rim.
size'small' | 'medium'"medium"
durationnumber8Seconds 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; duration sets 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.