Docs/Fondos

Studio Background

MIT

Multi-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';
2
3export default function Demo() {
4 return (
5 <ShaderStudioBackground
6 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

PropTipoPor defectoDescripción
colorstring"#d8dbec"Surface Color
keyColorstring"#d5e4ea"Key Color
keyIntensitynumber40Intensity
keySoftnessnumber50Softness
fillColorstring"#d5e4ea"Fill Color
fillIntensitynumber10Intensity
fillSoftnessnumber70Softness
fillAnglenumber70Spread
backColorstring"#c8d4e8"Back Color
backIntensitynumber20Intensity

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.