Emboss
MITEmbossed / debossed relief shading on top of child content, driven by a custom shape
Cargando shader…
Ajústalo
1
0
-0.5
260
0.6
0.3
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-emboss.json
Crea components/bastard/ShaderEmboss.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderEmboss from '@/components/bastard/ShaderEmboss';23export default function Demo() {4 return (5 <ShaderEmboss6 scale={1}7 rotation={0}8 depth={-0.5}9 lightAngle={260}10 lightIntensity={0.6}11 shadowIntensity={0.3}12 />13 );14}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| depth | number | -0.5 | Depth |
| lightAngle | number | 260 | Light Angle |
| lightIntensity | number | 0.6 | Light Intensity |
| shadowIntensity | number | 0.3 | Shadow Intensity |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Emboss · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.