Shader CanvasPro

Theme-aware raw WebGL fragment-shader background that pauses offscreen and falls back to a muted surface.

About Shader Canvas

Theme-aware raw WebGL fragment-shader background that pauses offscreen and falls back to a muted surface.

Shader Canvas is a pro animated component for React, built on shadcn/ui and Tailwind CSS. It ships as 268 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • webgl
  • shader
  • background
  • canvas

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/shader-canvas

Uses: use-reduced-motion, utils.

Usage

import ShaderCanvas from "@/components/chocolate/shader-canvas"

export default function Page() {
  return <ShaderCanvas />
}

FAQ