reactbits-mcp-server
Version:
MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements
38 lines (33 loc) • 1.06 kB
JavaScript
import { generateCliCommands } from '@/utils/utils';
import code from '@content/TextAnimations/CurvedLoop/CurvedLoop.jsx?raw';
import css from '@content/TextAnimations/CurvedLoop/CurvedLoop.css?raw';
import tailwind from '@tailwind/TextAnimations/CurvedLoop/CurvedLoop.jsx?raw';
import tsCode from '@ts-default/TextAnimations/CurvedLoop/CurvedLoop.tsx?raw';
import tsTailwind from '@ts-tailwind/TextAnimations/CurvedLoop/CurvedLoop.tsx?raw';
export const curvedLoop = {
...(generateCliCommands('TextAnimations/CurvedLoop')),
usage: `import CurvedLoop from './CurvedLoop';
// Basic usage
<CurvedLoop marqueeText="Welcome to React Bits ✦" />
// With custom props
<CurvedLoop
marqueeText="Be ✦ Creative ✦ With ✦ React ✦ Bits ✦"
speed={3}
curveAmount={500}
direction="right"
interactive={true}
className="custom-text-style"
/>
// Non-interactive with slower speed
<CurvedLoop
marqueeText="Smooth Curved Animation"
speed={1}
curveAmount={300}
interactive={false}
/>`,
code,
css,
tailwind,
tsCode,
tsTailwind
}