Chrome
MITStudio-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';23export default function Demo() {4 return (5 <ShaderChrome6 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
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| tint | string | "#ffffff" | Tint |
| warmColor | string | "#ffa94d" | Warm Light |
| coolColor | string | "#82a7e6" | Cool Light |
| bevelWidth | number | 0.028 | Bevel Width |
| bevelShape | number | 0.55 | Bevel Profile |
| curvature | number | 0.5 | Curvature |
| waviness | number | 0.15 | Waviness |
| environment | number | 1 | Environment |
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.