Customize
Installation
Installs are paused for now. You can still preview and customize every component on its page.
Usage
import { ThermalFlow } from "@/components/thermal-flow";
<div className="relative h-80 w-full overflow-hidden rounded-2xl">
<ThermalFlow theme="thermal" />
<div className="relative p-6 text-white">Your content</div>
</div>It fills its parent, so give the parent relative and put your content above it.
For your own palette, pass 2 to 8 colors from dark to bright.
<ThermalFlow colors={["#05060f", "#1d4ed8", "#38bdf8", "#fde047", "#f97316"]} />It pauses when off screen, holds still when reduced motion is on, and shows a plain gradient if WebGL is not available. Lower resolution to use less GPU.
Props
Your own palette of 2 to 8 colors. Overrides theme.
How many times the palette repeats.
1Higher means bigger shapes.
1How much the flow swirls.
1Blur on the sharp edges.
0.0050.35true1Render scale, from 0.25 to 1.
0.75Corner radius, any CSS value.
Shown before the first frame. Defaults to the first palette color.