Arihant jain

Metal Button

Shaders 155

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

    2K
  • Multistep Form

    Multistep Form

    755
  • Animated Drawer

    Animated Drawer

    703
  • Status Badge

    Status Badge

    598
  • Stacked Circular Footer

    Stacked Circular Footer

    457
  • Input Modal

    Input Modal

    371
  • Profile Dropdown

    Profile Dropdown

    216
  • Large Name Footer

    Large Name Footer

    205

More in Shaders

View all
  • Glass Fold

    Glass Fold

    499
  • Shader Animation

    Shader Animation

    3.9K
  • Parallel Waves

    Parallel Waves

    13
  • Radial Shader

    Radial Shader

    149
  • Phosphor 30

    Phosphor 30

    314
  • Stream Search

    Stream Search

    22
  • Illos Knowledge Sources

    Illos Knowledge Sources

    55
  • Paper design shader Background

    Paper design shader Background

    700

Explore more

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