Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
816
1.81k
<|prompt|>Generate a UI component like Animated Beam<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "animated-beam", "type": "registry:ui", "title": "Animated Beam", "description": "An interactive animated beam component", "files": [ { "path": "registry/magicui/animated-beam.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { useEffect, useId, useRef } from \"react\";\n\ninterface AnimatedBeamProps {\n className?: string;\n containerRef: React.RefObject<HTMLElement>;\n fromRef: React.RefObject<HTMLElement>;\n toRef: React.RefObject<HTMLElement>;\n curvature?: number;\n reverse?: boolean;\n duration?: number;\n}\n\nexport default function AnimatedBeam({\n className,\n containerRef,\n fromRef,\n toRef,\n curvature = 0,\n reverse = false,\n duration = 5,\n}: AnimatedBeamProps) {\n const id = useId();\n const pathRef = useRef<SVGPathElement>(null);\n\n return (\n <svg\n fill=\"none\"\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 100 100\"\n className={cn(\"pointer-events-none absolute inset-0\", className)}\n >\n <path\n ref={pathRef}\n d=\"M10,50 Q50,10 90,50\"\n stroke=\"url(#gradient)\"\n strokeWidth=\"2\"\n strokeOpacity=\"0.8\"\n fill=\"none\"\n />\n <defs>\n <linearGradient id=\"gradient\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" stopColor=\"transparent\" />\n <stop offset=\"50%\" stopColor=\"currentColor\" />\n <stop offset=\"100%\" stopColor=\"transparent\" />\n </linearGradient>\n </defs>\n </svg>\n );\n}", "type": "registry:ui", "target": "components/magicui/animated-beam.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Animated List<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "animated-list", "type": "registry:ui", "title": "Animated List", "description": "An interactive animated list component", "files": [ { "path": "registry/magicui/animated-list.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface AnimatedListProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function AnimatedList({\n className,\n children,\n ...props\n}: AnimatedListProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/animated-list.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Border Beam<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "border-beam", "type": "registry:ui", "title": "Border Beam", "description": "An interactive border beam component", "files": [ { "path": "registry/magicui/border-beam.tsx", "content": "import { cn } from \"@/lib/utils\";\n\ninterface BorderBeamProps {\n className?: string;\n size?: number;\n duration?: number;\n borderWidth?: number;\n anchor?: number;\n colorFrom?: string;\n colorTo?: string;\n delay?: number;\n}\n\nexport default function BorderBeam({\n className,\n size = 200,\n duration = 15,\n anchor = 90,\n borderWidth = 1.5,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n delay = 0,\n}: BorderBeamProps) {\n return (\n <div\n style={{\n \"--size\": size,\n \"--duration\": duration + \"s\",\n \"--anchor\": anchor + \"%\",\n \"--border-width\": borderWidth + \"px\",\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n \"--delay\": delay + \"s\",\n } as React.CSSProperties}\n className={cn(\n \"absolute inset-[0] rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]\",\n \"[background:linear-gradient(to_right,var(--color-from),var(--color-to),var(--color-from))_border-box]\",\n \"[mask:linear-gradient(#fff_0_0)_padding-box,_linear-gradient(#fff_0_0)]\",\n \"[mask-composite:xor]\",\n \"animate-border-beam\",\n className\n )}\n />\n );\n}", "type": "registry:ui", "target": "components/magicui/border-beam.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Confetti<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "confetti", "type": "registry:ui", "title": "Confetti", "description": "An interactive confetti component", "files": [ { "path": "registry/magicui/confetti.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface ConfettiProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Confetti({\n className,\n children,\n ...props\n}: ConfettiProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/confetti.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Dock<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "dock", "type": "registry:ui", "title": "Dock", "description": "An interactive dock component", "files": [ { "path": "registry/magicui/dock.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface DockProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Dock({\n className,\n children,\n ...props\n}: DockProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/dock.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Globe<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "globe", "type": "registry:ui", "title": "Globe", "description": "An interactive globe component", "files": [ { "path": "registry/magicui/globe.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface GlobeProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Globe({\n className,\n children,\n ...props\n}: GlobeProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/globe.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Magic Card<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "magic-card", "type": "registry:ui", "title": "Magic Card", "description": "An interactive magic card component", "files": [ { "path": "registry/magicui/magic-card.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface MagicCardProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function MagicCard({\n className,\n children,\n ...props\n}: MagicCardProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/magic-card.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Marquee<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "marquee", "type": "registry:ui", "title": "Marquee", "description": "An interactive marquee component", "files": [ { "path": "registry/magicui/marquee.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface MarqueeProps {\n className?: string;\n reverse?: boolean;\n pauseOnHover?: boolean;\n vertical?: boolean;\n children?: ReactNode;\n repeat?: number;\n}\n\nexport default function Marquee({\n className,\n reverse = false,\n pauseOnHover = false,\n vertical = false,\n children,\n repeat = 1,\n ...props\n}: MarqueeProps) {\n return (\n <div\n className={cn(\n \"group flex overflow-hidden p-2 [--duration:20s] [--gap:1rem] [gap:var(--gap)]\",\n {\n \"flex-col\": vertical,\n \"flex-row\": !vertical,\n },\n className\n )}\n {...props}\n >\n {Array.from({ length: repeat }).map((_, i) => (\n <div\n key={i}\n className={cn(\"flex shrink-0 justify-around [gap:var(--gap)]\", {\n \"animate-marquee flex-row\": !vertical,\n \"animate-marquee-vertical flex-col\": vertical,\n \"group-hover:[animation-play-state:paused]\": pauseOnHover,\n \"[animation-direction:reverse]\": reverse,\n })}\n >\n {children}\n </div>\n ))}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/marquee.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Meteors<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "meteors", "type": "registry:ui", "title": "Meteors", "description": "An interactive meteors component", "files": [ { "path": "registry/magicui/meteors.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface MeteorsProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Meteors({\n className,\n children,\n ...props\n}: MeteorsProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/meteors.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Number Ticker<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "number-ticker", "type": "registry:ui", "title": "Number Ticker", "description": "An interactive number ticker component", "files": [ { "path": "registry/magicui/number-ticker.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface NumberTickerProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function NumberTicker({\n className,\n children,\n ...props\n}: NumberTickerProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/number-ticker.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Particles<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "particles", "type": "registry:ui", "title": "Particles", "description": "An interactive particles component", "files": [ { "path": "registry/magicui/particles.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface ParticlesProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Particles({\n className,\n children,\n ...props\n}: ParticlesProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/particles.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Retro Grid<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "retro-grid", "type": "registry:ui", "title": "Retro Grid", "description": "An interactive retro grid component", "files": [ { "path": "registry/magicui/retro-grid.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface RetroGridProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function RetroGrid({\n className,\n children,\n ...props\n}: RetroGridProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/retro-grid.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Ripple<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "ripple", "type": "registry:ui", "title": "Ripple", "description": "An interactive ripple component", "files": [ { "path": "registry/magicui/ripple.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface RippleProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Ripple({\n className,\n children,\n ...props\n}: RippleProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/ripple.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Sparkles Text<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sparkles-text", "type": "registry:ui", "title": "Sparkles Text", "description": "An interactive sparkles text component", "files": [ { "path": "registry/magicui/sparkles-text.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface SparklesTextProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function SparklesText({\n className,\n children,\n ...props\n}: SparklesTextProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/sparkles-text.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Typing Animation<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "typing-animation", "type": "registry:ui", "title": "Typing Animation", "description": "An interactive typing animation component", "files": [ { "path": "registry/magicui/typing-animation.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface TypingAnimationProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function TypingAnimation({\n className,\n children,\n ...props\n}: TypingAnimationProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/typing-animation.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Word Rotate<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "word-rotate", "type": "registry:ui", "title": "Word Rotate", "description": "An interactive word rotate component", "files": [ { "path": "registry/magicui/word-rotate.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface WordRotateProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function WordRotate({\n className,\n children,\n ...props\n}: WordRotateProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/magicui/word-rotate.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Animated Tooltip<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "animated-tooltip", "type": "registry:ui", "title": "Animated Tooltip", "description": "An interactive animated tooltip component", "files": [ { "path": "registry/aceternity/animated-tooltip.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface AnimatedTooltipProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function AnimatedTooltip({\n className,\n children,\n ...props\n}: AnimatedTooltipProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/aceternity/animated-tooltip.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Background Beams<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "background-beams", "type": "registry:ui", "title": "Background Beams", "description": "An interactive background beams component", "files": [ { "path": "registry/aceternity/background-beams.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface BackgroundBeamsProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function BackgroundBeams({\n className,\n children,\n ...props\n}: BackgroundBeamsProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/aceternity/background-beams.tsx" } ] }<|endoftext|>
<|prompt|>Generate a UI component like Sparkles<|completion|>{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sparkles", "type": "registry:ui", "title": "Sparkles", "description": "An interactive sparkles component", "files": [ { "path": "registry/aceternity/sparkles.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { ReactNode } from \"react\";\n\ninterface SparklesProps {\n className?: string;\n children?: ReactNode;\n}\n\nexport default function Sparkles({\n className,\n children,\n ...props\n}: SparklesProps) {\n return (\n <div\n className={cn(\n \"relative\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}", "type": "registry:ui", "target": "components/aceternity/sparkles.tsx" } ] }<|endoftext|>
README.md exists but content is empty.
Downloads last month
1