UNPKG

reactbits-mcp-server

Version:

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

49 lines (45 loc) 2.25 kB
import { generateCliCommands } from '@/utils/utils'; import code from '@content/Backgrounds/GridMotion/GridMotion.jsx?raw'; import css from '@content/Backgrounds/GridMotion/GridMotion.css?raw'; import tailwind from '@tailwind/Backgrounds/GridMotion/GridMotion.jsx?raw'; import tsCode from '@ts-default/Backgrounds/GridMotion/GridMotion.tsx?raw' import tsTailwind from '@ts-tailwind/Backgrounds/GridMotion/GridMotion.tsx?raw' export const gridMotion = { ...(generateCliCommands('Backgrounds/GridMotion')), installation: `npm i gsap`, usage: `import GridMotion from './GridMotion'; // note: you'll need to make sure the parent container of this component is sized properly const items = [ 'Item 1', <div key='jsx-item-1'>Custom JSX Content</div>, 'https://images.unsplash.com/photo-1723403804231-f4e9b515fe9d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', 'Item 2', <div key='jsx-item-2'>Custom JSX Content</div>, 'Item 4', <div key='jsx-item-2'>Custom JSX Content</div>, 'https://images.unsplash.com/photo-1723403804231-f4e9b515fe9d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', 'Item 5', <div key='jsx-item-2'>Custom JSX Content</div>, 'Item 7', <div key='jsx-item-2'>Custom JSX Content</div>, 'https://images.unsplash.com/photo-1723403804231-f4e9b515fe9d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', 'Item 8', <div key='jsx-item-2'>Custom JSX Content</div>, 'Item 10', <div key='jsx-item-3'>Custom JSX Content</div>, 'https://images.unsplash.com/photo-1723403804231-f4e9b515fe9d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', 'Item 11', <div key='jsx-item-2'>Custom JSX Content</div>, 'Item 13', <div key='jsx-item-4'>Custom JSX Content</div>, 'https://images.unsplash.com/photo-1723403804231-f4e9b515fe9d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', 'Item 14', // Add more items as needed ]; <GridMotion items={items} />`, code, css, tailwind, tsCode, tsTailwind }