Docs / Liquid Metal

Liquid Metal

A shader-based liquid metal effect that transforms images or text into fluid, metallic flows.

Loading Metal Effect...
Installation
npx rareui add LiquidMetal

Usage

import LiquidMetal from "@/components/rareui/LiquidMetal";

export default function MyComponent() {
  return (
    <div className="w-full h-[600px]">
        {/* Basic Usage */}
        <LiquidMetal 
            text="Metal"
        />

        {/* Custom Configuration */}
        <LiquidMetal 
            text="Chrome"
            speed={0.5}
            dispersion={0.02}
            edge={0.3}
            patternScale={3}
        />
    </div>
  );
}

Props

PropTypeDefaultDescription
textstring"RareUI"Text to transform into liquid metal
imageSourcestringundefinedOptional image URL to use instead of text
speednumber0.3Animation speed
dispersionnumber0.005Refraction/dispersion amount (chromatic aberration)
edgenumber0.5Sharpness of the edges
patternBlurnumber0.005Blur amount for the pattern
liquifynumber0.08Intensity of the liquid distortion effect
patternScalenumber2Scale of the metallic pattern