Docs/Formas

Chrome

MIT

Studio-lit mirror chrome — a precision-machined shape with a controllable polished bevel, softly convex faces and a photographic studio reflected in them: one huge frontal softbox, black flags, and thin warm/cool strip lights that fringe amber and ice-blue exactly where the reflections break

Cargando shader…

Ajústalo

1
0
0.028
0.55
0.5
0.15
1

Instalación

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

Crea components/bastard/ShaderChrome.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderChrome from '@/components/bastard/ShaderChrome';
2
3export default function Demo() {
4 return (
5 <ShaderChrome
6 scale={1}
7 rotation={0}
8 tint="#ffffff"
9 warmColor="#ffa94d"
10 coolColor="#82a7e6"
11 bevelWidth={0.028}
12 bevelShape={0.55}
13 curvature={0.5}
14 waviness={0.15}
15 environment={1}
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
tintstring"#ffffff"Tint
warmColorstring"#ffa94d"Warm Light
coolColorstring"#82a7e6"Cool Light
bevelWidthnumber0.028Bevel Width
bevelShapenumber0.55Bevel Profile
curvaturenumber0.5Curvature
wavinessnumber0.15Waviness
environmentnumber1Environment

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

Créditos

Basado en Chrome · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.