Mesh Shadergradient
Mesh Shadergradient is a React and Tailwind CSS background component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
backgrounds
What it is
Mesh Shadergradient is a React and Tailwind CSS background component from UI Layouts, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
Needs
npm i @shadergradient/react
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Mesh Shadergradient
'use client';
import React from 'react';
import { ShaderGradientCanvas, ShaderGradient } from '@shadergradient/react';
function index() {
return (
<>
<div className='relative h-screen w-screen'>
<ShaderGradientCanvas
style={{
width: '100%',
height: '100%',
}}
lazyLoad={undefined}
fov={undefined}
pixelDensity={1}
pointerEvents='none'
>
<ShaderGradient
animate='on'
type='sphere'
wireframe={false}
shader='defaults'
uTime={0}
uSpeed={0.3}
uStrength={0.3}
uDensity={0.8}
uFrequency={5.5}
uAmplitude={3.2}
positionX={-0.1}
positionY={0}
positionZ={0}
rotationX={0}
rotationY={130}
rotationZ={70}
color1='#73bfc4'
color2='#ff810a'
color3='#8da0ce'
reflection={0.4}
// View (camera) props
cAzimuthAngle={270}
cPolarAngle={180}
cDistance={0.5}
cameraZoom={15.1}
// Effect props
lightType='env'
brightness={0.8}
envPreset='city'
grain='on'
// Tool props
toggleAxis={false}
zoomOut={false}
hoverState=''
// Optional - if using transition features
enableTransition={false}
/>
</ShaderGradientCanvas>
</div>
</>
);
}
export default index;