Liquid Metal
Apache-2.0Shader 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';23export default function Demo() {4 return (5 <PaperLiquidMetal6 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
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| speed | number | 1 | Speed |
| colorBack | string | "#AAAAAC" | Color Back |
| colorTint | string | "#ffffff" | Color Tint |
| distortion | number | 0.07 | Distortion |
| repetition | number | 2 | Repetition |
| shiftRed | number | 0.3 | Shift Red |
| shiftBlue | number | 0.3 | Shift Blue |
| contour | number | 0.4 | Contour |
| softness | number | 0.1 | Softness |
| angle | number | 70 | Angle |
| shape | string | "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.