Docs/Formas

Emboss

MIT

Embossed / 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';
2
3export default function Demo() {
4 return (
5 <ShaderEmboss
6 scale={1}
7 rotation={0}
8 depth={-0.5}
9 lightAngle={260}
10 lightIntensity={0.6}
11 shadowIntensity={0.3}
12 />
13 );
14}

Props

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
depthnumber-0.5Depth
lightAnglenumber260Light Angle
lightIntensitynumber0.6Light Intensity
shadowIntensitynumber0.3Shadow 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.