Chroma Flow
MITInteractive liquid flow effect that follows your cursor
Cargando shader…
Ajústalo
1
3
30
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-chroma-flow.json
Crea components/bastard/ShaderChromaFlow.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderChromaFlow from '@/components/bastard/ShaderChromaFlow';23export default function Demo() {4 return (5 <ShaderChromaFlow6 baseColor="#0066ff"7 upColor="#00ff00"8 downColor="#ff0000"9 leftColor="#0000ff"10 rightColor="#ffff00"11 intensity={1}12 radius={3}13 momentum={30}14 />15 );16}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| baseColor | string | "#0066ff" | Base Color |
| upColor | string | "#00ff00" | Up Color |
| downColor | string | "#ff0000" | Down Color |
| leftColor | string | "#0000ff" | Left Color |
| rightColor | string | "#ffff00" | Right Color |
| intensity | number | 1 | Intensity |
| radius | number | 3 | Radius |
| momentum | number | 30 | Momentum |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Chroma Flow · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.