Docs/Fondos

Satin

MIT

Flowing satin — a draped cloth of soft rippling folds lit like real fabric: a highlight streaked along the weave, a velvet sheen on the fold flanks and creases falling into shadow, swaying gently in a breeze

Cargando shader…

Ajústalo

7
90
0.5
0.14
0.6
0
1
0.4

Instalación

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

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

Uso

Demo.tsx
1import ShaderSatin from '@/components/bastard/ShaderSatin';
2
3export default function Demo() {
4 return (
5 <ShaderSatin
6 color="#c92c40"
7 highlightColor="#c4667b"
8 foldCount={7}
9 foldDirection={90}
10 foldDepth={0.5}
11 foldWidth={0.14}
12 pinning={0.6}
13 seed={0}
14 speed={1}
15 breeze={0.4}
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
colorstring"#c92c40"Color
highlightColorstring"#c4667b"Highlight
foldCountnumber7Folds
foldDirectionnumber90Direction
foldDepthnumber0.5Depth
foldWidthnumber0.14Width
pinningnumber0.6Pinning
seednumber0Seed
speednumber1Speed
breezenumber0.4Breeze

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

Créditos

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