Liquid Metal

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

Loading Metal Effect...

Installation

pnpm dlx rareui add LiquidMetal

Usage

Usage

1

Import the component

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

Use in your application

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> ); }

Features

High-performance liquid metal effect powered by WebGL shaders.

Props

PropTypeDefaultDescription
textstringRareUIText 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