Blob
MITOrganic animated blob with 3D lighting and gradients
Cargando shader…
Ajústalo
0.5
0.5
0.5
0.5
0.3
-0.3
0.4
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-blob.json
Crea components/bastard/ShaderBlob.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderBlob from '@/components/bastard/ShaderBlob';23export default function Demo() {4 return (5 <ShaderBlob6 colorA="#ff6b35"7 colorB="#e91e63"8 size={0.5}9 deformation={0.5}10 softness={0.5}11 highlightIntensity={0.5}12 highlightX={0.3}13 highlightY={-0.3}14 highlightZ={0.4}15 highlightColor="#ffe11a"16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| colorA | string | "#ff6b35" | Color A |
| colorB | string | "#e91e63" | Color B |
| size | number | 0.5 | Size |
| deformation | number | 0.5 | Deformation |
| softness | number | 0.5 | Softness |
| highlightIntensity | number | 0.5 | Highlight Intensity |
| highlightX | number | 0.3 | Highlight X |
| highlightY | number | -0.3 | Highlight Y |
| highlightZ | number | 0.4 | Highlight Z |
| highlightColor | string | "#ffe11a" | Highlight Color |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Blob · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.