Docs/Formas

Neon

MIT

Photorealistic neon tube / 3D pipe effect driven by a custom shape

Cargando shader…

Ajústalo

1
0
0.5
0.2
1.5
0.6
0.6

Instalación

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

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

Uso

Demo.tsx
1import ShaderNeon from '@/components/bastard/ShaderNeon';
2
3export default function Demo() {
4 return (
5 <ShaderNeon
6 scale={1}
7 rotation={0}
8 color="#00ddff"
9 secondaryColor="#ff00aa"
10 secondaryBlend={0.5}
11 glowColor="#00ddff"
12 tubeThickness={0.2}
13 intensity={1.5}
14 hotCoreIntensity={0.6}
15 glowIntensity={0.6}
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
colorstring"#00ddff"Tube Color
secondaryColorstring"#ff00aa"Secondary Color
secondaryBlendnumber0.5Blend
glowColorstring"#00ddff"Glow Color
tubeThicknessnumber0.2Tube Thickness
intensitynumber1.5Intensity
hotCoreIntensitynumber0.6Hot Core
glowIntensitynumber0.6Glow Intensity

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

Créditos

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