UNPKG

reactbits-mcp-server

Version:

MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements

33 lines (30 loc) 957 B
import { generateCliCommands } from '@/utils/utils'; import code from '@content/Backgrounds/LightRays/LightRays.jsx?raw'; import css from '@content/Backgrounds/LightRays/LightRays.css?raw'; import tailwind from '@tailwind/Backgrounds/LightRays/LightRays.jsx?raw'; import tsCode from '@ts-default/Backgrounds/LightRays/LightRays.tsx?raw' import tsTailwind from '@ts-tailwind/Backgrounds/LightRays/LightRays.tsx?raw' export const lightRays = { ...(generateCliCommands('Backgrounds/LightRays')), installation: `npm i ogl`, usage: `import LightRays from './LightRays'; <div style={{ width: '100%', height: '600px', position: 'relative' }}> <LightRays raysOrigin="top-center" raysColor="#00ffff" raysSpeed={1.5} lightSpread={0.8} rayLength={1.2} followMouse={true} mouseInfluence={0.1} noiseAmount={0.1} distortion={0.05} className="custom-rays" /> </div>`, code, css, tailwind, tsCode, tsTailwind }