Satin
MITFlowing 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';23export default function Demo() {4 return (5 <ShaderSatin6 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
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| color | string | "#c92c40" | Color |
| highlightColor | string | "#c4667b" | Highlight |
| foldCount | number | 7 | Folds |
| foldDirection | number | 90 | Direction |
| foldDepth | number | 0.5 | Depth |
| foldWidth | number | 0.14 | Width |
| pinning | number | 0.6 | Pinning |
| seed | number | 0 | Seed |
| speed | number | 1 | Speed |
| breeze | number | 0.4 | Breeze |
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.