Arihant jain

Metal Button

Shaders 123

About

A pill-shaped button framed by a real-time WebGL liquid-metal ring, with chromatic, silver and gold color presets.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Metal Button to your project and fits it to your theme.

Code

How Metal Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { MetalButton } from "@/components/ui/metal-button";
import { ArrowUpRight, Sparkles } from "lucide-react";

export default function MetalButtonDemo() {
  return (
    <div className="flex w-full flex-col items-center gap-6 py-10">
      <div className="flex flex-wrap items-center justify-center gap-5">
        <MetalButton preset="chromatic">
          <Sparkles className="size-4" />
          Upgrade to Pro
        </MetalButton>
        <MetalButton preset="silver">Continue</MetalButton>
        <MetalButton preset="gold" size="lg">
          Get started
          <ArrowUpRight className="size-4" />
        </MetalButton>
      </div>
      <p className="text-sm text-neutral-500 dark:text-neutral-400">
        One shared WebGL shader paints every ring - chromatic, silver and gold
        presets.
      </p>
    </div>
  );
}

Dependencies

More by Arihant jain

View all
  • Footer section

    Footer section

    1.9K
  • Multistep Form

    Multistep Form

    698
  • Animated Drawer

    Animated Drawer

    686
  • Status Badge

    Status Badge

    495
  • Stacked Circular Footer

    Stacked Circular Footer

    413
  • Input Modal

    Input Modal

    316
  • Large Name Footer

    Large Name Footer

    193
  • Profile Dropdown

    Profile Dropdown

    187

More in Shaders

View all
  • Glass Fold

    Glass Fold

    212
  • Neural Noise

    Neural Noise

    717
  • Wave

    Wave

    685
  • LightSpeed

    LightSpeed

    207
  • animated pattern cloud

    animated pattern cloud

    616
  • Background Shader

    Background Shader

    304
  • Shader Background

    Shader Background

    2K
  • Line Shader Homlu UI

    Line Shader Homlu UI

    48

Explore more

Part of Spectrum UI — browse the full library on 21st.dev.