Import shader components like MeshGradient and DotOrbit from @paper-design/shaders-react to add animated visual effects to your React application. These components accept color arrays, effect parameters (such as distortion, swirl, or scale), and standard React style props.
import { MeshGradient, DotOrbit } from '@paper-design/shaders-react';
// Example: MeshGradient
<MeshGradient
colors={['#5100ff', '#00ff80', '#ffcc00', '#ea00ff']}
distortion={1}
swirl={0.8}
speed={0.2}
style={{width: 200, height: 200}}
/>
// Example: DotOrbit
<DotOrbit
colors={['#d2822d', '#0c3b7e', '#b31a57', '#37a066']}
colorBack={'#000000'}
scale={0.3}
style={{width: 200, height: 200}}
/>