Sun Burst
MITRadial sunburst rays emanating from a center point
Cargando shader…
Ajústalo
12
0.3
0.8
0.5
0.2
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-sun-burst.json
Crea components/bastard/ShaderSunBurst.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderSunBurst from '@/components/bastard/ShaderSunBurst';23export default function Demo() {4 return (5 <ShaderSunBurst6 color="#ffdd88"7 background="#000000"8 rayCount={12}9 softness={0.3}10 radius={0.8}11 feather={0.5}12 speed={0.2}13 />14 );15}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| color | string | "#ffdd88" | Color |
| background | string | "#000000" | Background |
| rayCount | number | 12 | Ray Count |
| softness | number | 0.3 | Softness |
| radius | number | 0.8 | Radius |
| feather | number | 0.5 | Feather |
| speed | number | 0.2 | Speed |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Sun Burst · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.