Brickslab.

@brickslab/ui-web

Gradient mesh with subtle noise and grain texture effect using canvas

Noise Mesh

Props

PropTypeDéfautRequisDescription
colorsstring[]["#FF6B6B", "#4ECDC4", "#45B7D1"]Array of colors for the gradient mesh
noisenumber0.4Intensity of noise texture (0-1)
grainSizenumber2Size of grain particles
animatebooleantrueEnable animation
speednumber6Animation speed in seconds

Usage

tsx
import { NoiseMeshBackground } from "@brickslab/ui-web";

export function MyComponent() {
  return (
    <div className="relative w-full h-screen">
      <NoiseMeshBackground
        colors={["#FF6B6B", "#4ECDC4", "#45B7D1"]}
        noise={0.4}
        grainSize={2}
      />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold text-white">Noise Mesh</h1>
      </div>
    </div>
  );
}

Variations

Warm Colors High Noise

Warm

Cool Colors Low Noise

Cool