Docs/Efectos

Fluted Glass

Apache-2.0

Shader de Paper Shaders (Fluted Glass), con 4 presets.

Cargando shader…

Ajústalo

0
0.25
0.5
0
0.1
0.5
0
0

Instalación

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

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

Uso

Demo.tsx
1import PaperFlutedGlass from '@/components/bastard/PaperFlutedGlass';
2
3export default function Demo() {
4 return (
5 <PaperFlutedGlass
6 speed={0}
7 colorShadow="#000000"
8 colorHighlight="#ffffff"
9 shadows={0.25}
10 size={0.5}
11 angle={0}
12 distortionShape="prism"
13 highlights={0.1}
14 shape="lines"
15 distortion={0.5}
16 shift={0}
17 blur={0}
18 />
19 );
20}

Props

PropTipoPor defectoDescripción
speednumber0Speed
colorShadowstring"#000000"Color Shadow
colorHighlightstring"#ffffff"Color Highlight
shadowsnumber0.25Shadows
sizenumber0.5Size
anglenumber0Angle
distortionShapestring"prism"Distortion Shape
highlightsnumber0.1Highlights
shapestring"lines"Shape
distortionnumber0.5Distortion
shiftnumber0Shift
blurnumber0Blur

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

Créditos

Basado en Fluted Glass · 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.