Docs/Formas

Liquid Metal

Apache-2.0

Shader de Paper Shaders (Liquid Metal), con 4 presets.

Cargando shader…

Ajústalo

1
0.07
2
0.3
0.3
0.4
0.1
70

Instalación

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

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

Uso

Demo.tsx
1import PaperLiquidMetal from '@/components/bastard/PaperLiquidMetal';
2
3export default function Demo() {
4 return (
5 <PaperLiquidMetal
6 speed={1}
7 colorBack="#AAAAAC"
8 colorTint="#ffffff"
9 distortion={0.07}
10 repetition={2}
11 shiftRed={0.3}
12 shiftBlue={0.3}
13 contour={0.4}
14 softness={0.1}
15 angle={70}
16 shape="diamond"
17 />
18 );
19}

Props

PropTipoPor defectoDescripción
speednumber1Speed
colorBackstring"#AAAAAC"Color Back
colorTintstring"#ffffff"Color Tint
distortionnumber0.07Distortion
repetitionnumber2Repetition
shiftRednumber0.3Shift Red
shiftBluenumber0.3Shift Blue
contournumber0.4Contour
softnessnumber0.1Softness
anglenumber70Angle
shapestring"diamond"Shape

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

Créditos

Basado en Liquid Metal · 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.