Light Edge
MITGlowing, pulsing light racing around the edge of any 2D, SVG, or 3D shape. Powered by Paper Shaders.
Cargando shader…
Ajústalo
1
0
0.25
0.5
0.6
0.3
3
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-light-edge.json
Crea components/bastard/ShaderLightEdge.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderLightEdge from '@/components/bastard/ShaderLightEdge';23export default function Demo() {4 return (5 <ShaderLightEdge6 scale={1}7 rotation={0}8 colorA="#7b2ff7"9 colorB="#00e0ff"10 colorSpace="linear"11 thickness={0.25}12 softness={0.5}13 intensity={0.6}14 bloom={0.3}15 spots={3}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| colorA | string | "#7b2ff7" | Color A |
| colorB | string | "#00e0ff" | Color B |
| colorSpace | 'linear' | 'oklch' | 'oklab' | 'hsl' | 'hsv' | 'lch' | "linear" | Color Space |
| thickness | number | 0.25 | Thickness |
| softness | number | 0.5 | Softness |
| intensity | number | 0.6 | Intensity |
| bloom | number | 0.3 | Bloom |
| spots | number | 3 | Spots |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Light Edge · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.