Docs/Efectos

Paper Texture

Apache-2.0

Shader de Paper Shaders (Paper Texture), con 4 presets.

Cargando shader…

Ajústalo

0
1
0.75
300
4
0.4
0.5
0

Instalación

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

Crea components/bastard/PaperPaperTexture.tsx e instala @paper-design/shaders-react. Más opciones

Uso

Demo.tsx
1import PaperPaperTexture from '@/components/bastard/PaperPaperTexture';
2
3export default function Demo() {
4 return (
5 <PaperPaperTexture
6 speed={0}
7 colorBack="#d3d2ab"
8 colorPaper="#ffffff"
9 colorShadow="#cccccc"
10 blending={1}
11 distortion={0.75}
12 clip={false}
13 angle={300}
14 seed={4}
15 roughness={0.4}
16 roughnessSize={0.5}
17 roughnessRows={0}
18 />
19 );
20}

Props

PropTipoPor defectoDescripción
speednumber0Speed
colorBackstring"#d3d2ab"Color Back
colorPaperstring"#ffffff"Color Paper
colorShadowstring"#cccccc"Color Shadow
blendingnumber1Blending
distortionnumber0.75Distortion
clipbooleanfalseClip
anglenumber300Angle
seednumber4Seed
roughnessnumber0.4Roughness
roughnessSizenumber0.5Roughness Size
roughnessRowsnumber0Roughness Rows

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

Créditos

Basado en Paper Texture · Paper Shaders, adaptado para BSTRD UI.Licencia: Apache-2.0. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.