Docs/Efectos

Sparkle

MIT

Twinkling star glints over the bright parts of the layer inside

Cargando shader…

Ajústalo

100
10
0.2
0
5
0.45
1
0

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-sparkle.json

Crea components/bastard/ShaderSparkle.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderSparkle from '@/components/bastard/ShaderSparkle';
2
3export default function Demo() {
4 return (
5 <ShaderSparkle
6 size={100}
7 intensity={10}
8 threshold={0.2}
9 expand={0}
10 rayLength={5}
11 colorize={0.45}
12 speed={1}
13 seed={0}
14 />
15 );
16}

Props

PropTipoPor defectoDescripción
sizenumber100Spacing
intensitynumber10Intensity
thresholdnumber0.2Threshold
expandnumber0Expand
rayLengthnumber5Ray Length
colorizenumber0.45Colorize
speednumber1Speed
seednumber0Seed

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Sparkle · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.