Hyperiux Vault

Metallic Button

Shaders 320

About

Button with a WebGL metallic shader rim, hover and press speed ramps, and a click ripple. Every metal parameter is a live control.

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

Code

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

Usage.tsx

"use client";

import MetallicButton from "@/components/ui/metallic-button";

const settings = {
  label: "Get Started",
  viewMode: "text",
  baseColor: "#000000",
  sheenColor: "#ffffff",
  bandCount: 4,
  edgeBlur: 0.5,
  flowAngle: 45,
  zoom: 8,
  warp: 0,
  redFringe: 0.3,
  blueFringe: 0.3,
  idleSpeed: 0.6,
  hoverSpeed: 1,
  clickSpeed: 2.4,
};

export default function MetallicButtonDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background">
      <MetallicButton
        label={s.label}
        viewMode={s.viewMode as "text" | "icon"}
        baseColor={s.baseColor}
        sheenColor={s.sheenColor}
        bandCount={s.bandCount}
        edgeBlur={s.edgeBlur}
        flowAngle={s.flowAngle}
        zoom={s.zoom}
        warp={s.warp}
        redFringe={s.redFringe}
        blueFringe={s.blueFringe}
        idleSpeed={s.idleSpeed}
        hoverSpeed={s.hoverSpeed}
        clickSpeed={s.clickSpeed}
      />
    </main>
  );
}

Dependencies

More by Hyperiux Vault

View all
  • Product Timeline

    Product Timeline

    2.2K
  • Stack Spread

    Stack Spread

    1.3K
  • Arrow Fill Button

    Arrow Fill Button

    908
  • Interactive List Preview

    Interactive List Preview

    866
  • Shiny Button

    Shiny Button

    733
  • Circular Split Roll

    Circular Split Roll

    632
  • Zoom Slider

    Zoom Slider

    423
  • Stack Loader

    Stack Loader

    370

More in Shaders

View all
  • Glass Fold

    Glass Fold

    193
  • Paper design shader Background

    Paper design shader Background

    672
  • Wave

    Wave

    683
  • LightSpeed

    LightSpeed

    206
  • Neural Noise

    Neural Noise

    711
  • DitheredShaderBackground

    DitheredShaderBackground

    43
  • Gigabit

    Gigabit

    55
  • Line Shader Homlu UI

    Line Shader Homlu UI

    48