Studio Background
MITMulti-light studio background with ambient motion.
Cargando shader…
Ajústalo
40
50
10
70
70
20
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-studio-background.json
Crea components/bastard/ShaderStudioBackground.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderStudioBackground from '@/components/bastard/ShaderStudioBackground';23export default function Demo() {4 return (5 <ShaderStudioBackground6 color="#d8dbec"7 keyColor="#d5e4ea"8 keyIntensity={40}9 keySoftness={50}10 fillColor="#d5e4ea"11 fillIntensity={10}12 fillSoftness={70}13 fillAngle={70}14 backColor="#c8d4e8"15 backIntensity={20}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| color | string | "#d8dbec" | Surface Color |
| keyColor | string | "#d5e4ea" | Key Color |
| keyIntensity | number | 40 | Intensity |
| keySoftness | number | 50 | Softness |
| fillColor | string | "#d5e4ea" | Fill Color |
| fillIntensity | number | 10 | Intensity |
| fillSoftness | number | 70 | Softness |
| fillAngle | number | 70 | Spread |
| backColor | string | "#c8d4e8" | Back Color |
| backIntensity | number | 20 | Intensity |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Studio Background · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.