Hyperiux Vault

Metallic Button

Shaders 331

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.3K
  • Stack Spread

    Stack Spread

    1.3K
  • Arrow Fill Button

    Arrow Fill Button

    921
  • Interactive List Preview

    Interactive List Preview

    871
  • Shiny Button

    Shiny Button

    757
  • Circular Split Roll

    Circular Split Roll

    646
  • Zoom Slider

    Zoom Slider

    438
  • Stack Loader

    Stack Loader

    373

More in Shaders

View all
  • Glass Fold

    Glass Fold

    226
  • LightSpeed

    LightSpeed

    210
  • Neural Noise

    Neural Noise

    721
  • Phosphor 30

    Phosphor 30

    289
  • Wave

    Wave

    689
  • Background Shader

    Background Shader

    304
  • NeuralNoiseCursor

    NeuralNoiseCursor

    121
  • Shader Lines

    Shader Lines

    2.3K