Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: add new dotted map component (#813)

Dillion Vermaf7a7797f5e98
diff --git a/apps/www/config/docs.ts b/apps/www/config/docs.ts
index 9056bb7e..c6352bbc 100644
--- a/apps/www/config/docs.ts
+++ b/apps/www/config/docs.ts
@@ -213,8 +213,8 @@ export const docsConfig: DocsConfig = {
label: "",
},
{
- title: "Animated Theme Toggler",
- href: `/docs/components/animated-theme-toggler`,
+ title: "Dotted Map",
+ href: `/docs/components/dotted-map`,
items: [],
label: "New",
},
@@ -261,6 +261,12 @@ export const docsConfig: DocsConfig = {
items: [],
label: "",
},
+ {
+ title: "Animated Theme Toggler",
+ href: `/docs/components/animated-theme-toggler`,
+ items: [],
+ label: "New",
+ },
],
},
{
diff --git a/apps/www/content/docs/components/dotted-map.mdx b/apps/www/content/docs/components/dotted-map.mdx
new file mode 100644
index 00000000..58db014d
--- /dev/null
+++ b/apps/www/content/docs/components/dotted-map.mdx
@@ -0,0 +1,73 @@
+---
+title: Dotted Map
+date: 2025-09-25
+description: A component with a svg dotted map.
+author: dillionverma
+published: true
+---
+
+<ComponentPreview name="dotted-map-demo" />
+
+## Installation
+
+<Tabs defaultValue="cli">
+
+<TabsList>
+ <TabsTrigger value="cli">CLI</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @magicui/dotted-map
+```
+
+</TabsContent>
+
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource name="dotted-map" />
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</Tabs>
+
+## Examples
+
+### Sparse Dotted Map
+
+<ComponentPreview name="dotted-map-demo-2" />
+
+## Usage
+
+```tsx showLineNumbers
+import { DottedMap } from "@/components/ui/dotted-map"
+```
+
+```tsx showLineNumbers
+<div className="relative h-[400px] w-full overflow-hidden rounded-xl border">
+ <DottedMap />
+</div>
+```
+
+## Props
+
+| Prop | Type | Default | Description |
+| ------------- | --------------------- | ----------- | ----------------------------------------------------- |
+| `width` | `number` | `150` | Width of the SVG map. |
+| `height` | `number` | `75` | Height of the SVG map. |
+| `mapSamples` | `number` | `5500` | Number of sample points for map generation. |
+| `markers` | `Marker[]` | `[]` | Array of markers to display on the map. |
+| `dotColor` | `string` | `undefined` | Color of the map dots (uses currentColor if not set). |
+| `markerColor` | `string` | `"#FF6900"` | Color of the markers. |
+| `dotRadius` | `number` | `0.22` | Radius of the map dots. |
+| `className` | `string` | `undefined` | Additional class names applied to the SVG. |
+| `style` | `React.CSSProperties` | `undefined` | Inline styles merged into the SVG. |
diff --git a/apps/www/package.json b/apps/www/package.json
index 40152e6d..289e5283 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -75,6 +75,7 @@
"schema-dts": "^1.1.5",
"shadcn": "3.2.1",
"sonner": "^1.7.4",
+ "svg-dotted-map": "^2.0.1",
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.13",
"ts-morph": "^23.0.0",
diff --git a/apps/www/public/llms-full.txt b/apps/www/public/llms-full.txt
index ea17a4a5..41338413 100644
--- a/apps/www/public/llms-full.txt
+++ b/apps/www/public/llms-full.txt
@@ -353,6 +353,23 @@ Title: Dot Pattern with glow effect
+===== COMPONENT: dotted-map =====
+Title: Dotted Map
+Description: A component with a dotted map.
+
+
+
+===== EXAMPLE: dotted-map-demo =====
+Title: Dotted Map Demo
+
+
+
+===== EXAMPLE: dotted-map-demo-2 =====
+Title: Dotted Map Demo 2
+
+
+
+
===== COMPONENT: file-tree =====
Title: File Tree
Description: A component used to showcase the folder and file structure of a directory.
diff --git a/apps/www/public/llms.txt b/apps/www/public/llms.txt
index 9462f714..e8f4aed2 100644
--- a/apps/www/public/llms.txt
+++ b/apps/www/public/llms.txt
@@ -26,6 +26,7 @@ This file provides LLM-friendly entry points to documentation and examples.
- [Cool Mode](https://magicui.design/docs/components/cool-mode): Cool mode effect for buttons, links, and other DOMs
- [Dock](https://magicui.design/docs/components/dock): An implementation of the MacOS dock using react + tailwindcss + motion
- [Dot Pattern](https://magicui.design/docs/components/dot-pattern): A background dot pattern made with SVGs, fully customizable using Tailwind CSS.
+- [Dotted Map](https://magicui.design/docs/components/dotted-map): A component with a dotted map.
- [File Tree](https://magicui.design/docs/components/file-tree): A component used to showcase the folder and file structure of a directory.
- [Flickering Grid](https://magicui.design/docs/components/flickering-grid): A flickering grid background made with SVGs, fully customizable using Tailwind CSS.
- [Globe](https://magicui.design/docs/components/globe): An autorotating, interactive, and highly performant globe made using WebGL.
@@ -204,6 +205,8 @@ This file provides LLM-friendly entry points to documentation and examples.
- [Highlighter Demo](https://github.com/magicuidesign/magicui/blob/main/example/highlighter-demo.tsx): Example usage
- [Animated Theme Toggler Demo](https://github.com/magicuidesign/magicui/blob/main/example/animated-theme-toggler-demo.tsx): Example usage
- [light-rays-demo](https://github.com/magicuidesign/magicui/blob/main/example/light-rays-demo.tsx): Example usage
+- [Dotted Map Demo](https://github.com/magicuidesign/magicui/blob/main/example/dotted-map-demo.tsx): Example usage
+- [Dotted Map Demo 2](https://github.com/magicuidesign/magicui/blob/main/example/dotted-map-demo-2.tsx): Example usage
## Optional
diff --git a/apps/www/public/r/dotted-map-demo-2.json b/apps/www/public/r/dotted-map-demo-2.json
new file mode 100644
index 00000000..411d55ba
--- /dev/null
+++ b/apps/www/public/r/dotted-map-demo-2.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dotted-map-demo-2",
+ "type": "registry:example",
+ "title": "Dotted Map Demo 2",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo-2.tsx",
+ "content": "import { DottedMap } from \"@/registry/magicui/dotted-map\"\n\nexport default function Component() {\n return (\n <div className=\"relative h-[500px] w-full overflow-hidden rounded-lg border\">\n <DottedMap mapSamples={3000} dotRadius={0.2} />\n </div>\n )\n}\n",
+ "type": "registry:example"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/apps/www/public/r/dotted-map-demo.json b/apps/www/public/r/dotted-map-demo.json
new file mode 100644
index 00000000..683b2c74
--- /dev/null
+++ b/apps/www/public/r/dotted-map-demo.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dotted-map-demo",
+ "type": "registry:example",
+ "title": "Dotted Map Demo",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo.tsx",
+ "content": "import { DottedMap } from \"@/registry/magicui/dotted-map\"\n\nexport default function Component() {\n return (\n <div className=\"relative h-[500px] w-full overflow-hidden rounded-lg border\">\n <div className=\"to-background absolute inset-0 bg-radial from-transparent to-70%\" />\n <DottedMap\n markers={[\n {\n lat: 40.7128,\n lng: -74.006,\n size: 0.5,\n }, // New York\n {\n lat: 34.0522,\n lng: -118.2437,\n size: 0.5,\n }, // Los Angeles\n {\n lat: 51.5074,\n lng: -0.1278,\n size: 0.5,\n }, // London\n {\n lat: -33.8688,\n lng: 151.2093,\n size: 0.5,\n }, // Sydney\n ]}\n />\n </div>\n )\n}\n",
+ "type": "registry:example"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/apps/www/public/r/dotted-map.json b/apps/www/public/r/dotted-map.json
new file mode 100644
index 00000000..b9e27721
--- /dev/null
+++ b/apps/www/public/r/dotted-map.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dotted-map",
+ "type": "registry:ui",
+ "title": "Dotted Map",
+ "description": "A component with a dotted map.",
+ "dependencies": [
+ "svg-dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/magicui/dotted-map.tsx",
+ "content": "import { createMap } from \"svg-dotted-map\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface Marker {\n lat: number\n lng: number\n size?: number\n}\n\nexport interface DottedMapProps extends React.SVGProps<SVGSVGElement> {\n width?: number\n height?: number\n mapSamples?: number\n markers?: Marker[]\n dotColor?: string\n markerColor?: string\n dotRadius?: number\n}\n\nexport function DottedMap({\n width = 150,\n height = 75,\n mapSamples = 5500,\n markers = [],\n markerColor = \"#FF6900\",\n dotRadius = 0.22,\n className,\n style,\n}: DottedMapProps) {\n const { points, addMarkers } = createMap({\n width,\n height,\n mapSamples,\n })\n\n const processedMarkers = addMarkers(markers)\n\n return (\n <svg\n viewBox={`0 0 ${width} ${height}`}\n className={cn(\"fill-black dark:fill-white\", className)}\n style={{ width: \"100%\", height: \"100%\", ...style }}\n >\n {points.map((point, index) => {\n return (\n <circle\n cx={point.x}\n cy={point.y}\n r={dotRadius}\n fill=\"currentColor\"\n key={`${point.x}-${point.y}-${index}`}\n />\n )\n })}\n {processedMarkers.map((marker, index) => {\n return (\n <circle\n cx={marker.x}\n cy={marker.y}\n r={marker.size ?? dotRadius}\n fill={markerColor}\n key={`${marker.x}-${marker.y}-${index}`}\n />\n )\n })}\n </svg>\n )\n}\n",
+ "type": "registry:ui"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/apps/www/public/r/light-rays-demo.json b/apps/www/public/r/light-rays-demo.json
index 67218ae5..0567772f 100644
--- a/apps/www/public/r/light-rays-demo.json
+++ b/apps/www/public/r/light-rays-demo.json
@@ -9,7 +9,7 @@
"files": [
{
"path": "registry/example/light-rays-demo.tsx",
- "content": "import { LightRays } from \"@/registry/magicui/light-rays\"\n\nexport default function Demo() {\n return (\n <div className=\"relative h-[500px] w-full overflow-hidden rounded-lg border\">\n <div className=\"relative z-10 flex h-full flex-col items-center justify-center gap-4 px-6 text-center\">\n <span className=\"text-xs font-semibold tracking-[0.35em] text-slate-800/60 uppercase dark:text-slate-200/60\">\n Ambient glow\n </span>\n <h1 className=\"text-foreground text-4xl font-bold md:text-5xl\">\n Light Rays\n </h1>\n <p className=\"max-w-md text-sm text-slate-800/80 md:text-base dark:text-slate-200/80\">\n Drop this component into any container and it will fill the space with\n softly animated light rays shining from above.\n </p>\n </div>\n <LightRays />\n </div>\n )\n}\n",
+ "content": "import { LightRays } from \"@/registry/magicui/light-rays\"\n\nexport default function Component() {\n return (\n <div className=\"relative h-[500px] w-full overflow-hidden rounded-lg border\">\n <div className=\"relative z-10 flex h-full flex-col items-center justify-center gap-4 px-6 text-center\">\n <span className=\"text-xs font-semibold tracking-[0.35em] text-slate-800/60 uppercase dark:text-slate-200/60\">\n Ambient glow\n </span>\n <h1 className=\"text-foreground text-4xl font-bold md:text-5xl\">\n Light Rays\n </h1>\n <p className=\"max-w-md text-sm text-slate-800/80 md:text-base dark:text-slate-200/80\">\n Drop this component into any container and it will fill the space with\n softly animated light rays shining from above.\n </p>\n </div>\n <LightRays />\n </div>\n )\n}\n",
"type": "registry:example"
}
]
diff --git a/apps/www/public/r/registry.json b/apps/www/public/r/registry.json
index edbb0396..703a0b9e 100644
--- a/apps/www/public/r/registry.json
+++ b/apps/www/public/r/registry.json
@@ -1230,6 +1230,21 @@
}
]
},
+ {
+ "name": "dotted-map",
+ "type": "registry:ui",
+ "title": "Dotted Map",
+ "description": "A component with a dotted map.",
+ "dependencies": [
+ "svg-dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/magicui/dotted-map.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
{
"name": "magic-card-demo",
"type": "registry:example",
@@ -3186,6 +3201,36 @@
}
]
},
+ {
+ "name": "dotted-map-demo",
+ "type": "registry:example",
+ "title": "Dotted Map Demo",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo.tsx",
+ "type": "registry:example"
+ }
+ ]
+ },
+ {
+ "name": "dotted-map-demo-2",
+ "type": "registry:example",
+ "title": "Dotted Map Demo 2",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo-2.tsx",
+ "type": "registry:example"
+ }
+ ]
+ },
{
"name": "utils",
"type": "registry:lib",
diff --git a/apps/www/registry.json b/apps/www/registry.json
index edbb0396..703a0b9e 100644
--- a/apps/www/registry.json
+++ b/apps/www/registry.json
@@ -1230,6 +1230,21 @@
}
]
},
+ {
+ "name": "dotted-map",
+ "type": "registry:ui",
+ "title": "Dotted Map",
+ "description": "A component with a dotted map.",
+ "dependencies": [
+ "svg-dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/magicui/dotted-map.tsx",
+ "type": "registry:ui"
+ }
+ ]
+ },
{
"name": "magic-card-demo",
"type": "registry:example",
@@ -3186,6 +3201,36 @@
}
]
},
+ {
+ "name": "dotted-map-demo",
+ "type": "registry:example",
+ "title": "Dotted Map Demo",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo.tsx",
+ "type": "registry:example"
+ }
+ ]
+ },
+ {
+ "name": "dotted-map-demo-2",
+ "type": "registry:example",
+ "title": "Dotted Map Demo 2",
+ "description": "Example showing a dotted map.",
+ "registryDependencies": [
+ "@magicui/dotted-map"
+ ],
+ "files": [
+ {
+ "path": "registry/example/dotted-map-demo-2.tsx",
+ "type": "registry:example"
+ }
+ ]
+ },
{
"name": "utils",
"type": "registry:lib",
diff --git a/apps/www/registry/__index__.tsx b/apps/www/registry/__index__.tsx
index 9aa133a3..6f5f1913 100644
--- a/apps/www/registry/__index__.tsx
+++ b/apps/www/registry/__index__.tsx
@@ -6,7 +6,7 @@
import * as React from "react"
export const Index: Record<string, any> = {
- "index": {
+ index: {
name: "index",
description: "",
type: "registry:style",
@@ -17,34 +17,47 @@ export const Index: Record<string, any> = {
},
"magic-card": {
name: "magic-card",
- description: "A spotlight effect that follows your mouse cursor and highlights borders on hover.",
+ description:
+ "A spotlight effect that follows your mouse cursor and highlights borders on hover.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/magic-card.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/magic-card.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/magic-card.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "android": {
+ android: {
name: "android",
description: "A mockup of an Android device.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/android.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/android.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/android.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -54,14 +67,20 @@ export const Index: Record<string, any> = {
description: "A card with a time warping background effect.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/warp-background.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/warp-background.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/warp-background.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -71,14 +90,20 @@ export const Index: Record<string, any> = {
description: "A text component with a moving line shadow.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/line-shadow-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/line-shadow-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/line-shadow-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -88,14 +113,20 @@ export const Index: Record<string, any> = {
description: "A beautiful aurora text effect",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/aurora-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/aurora-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/aurora-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -105,14 +136,20 @@ export const Index: Record<string, any> = {
description: "A dynamic text morphing component for Magic UI.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/morphing-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/morphing-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/morphing-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -122,82 +159,116 @@ export const Index: Record<string, any> = {
description: "Animated Scroll Progress for your pages",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/scroll-progress.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/scroll-progress.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/scroll-progress.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "lens": {
+ lens: {
name: "lens",
- description: "A interactive component that enables zooming into images, videos and other elements.",
+ description:
+ "A interactive component that enables zooming into images, videos and other elements.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/lens.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/lens.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/lens.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "pointer": {
+ pointer: {
name: "pointer",
- description: "A component that displays a pointer when hovering over an element",
+ description:
+ "A component that displays a pointer when hovering over an element",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/pointer.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/pointer.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/pointer.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"smooth-cursor": {
name: "smooth-cursor",
- description: "A customizable, physics-based smooth cursor animation component with spring animations and rotation effects",
+ description:
+ "A customizable, physics-based smooth cursor animation component with spring animations and rotation effects",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/smooth-cursor.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/smooth-cursor.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/smooth-cursor.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"progressive-blur": {
name: "progressive-blur",
- description: "The Progressive Blur component adds a smooth blur gradient effect to scrollable content, indicating more content below or above.",
+ description:
+ "The Progressive Blur component adds a smooth blur gradient effect to scrollable content, indicating more content below or above.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/progressive-blur.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/progressive-blur.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/progressive-blur.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -207,116 +278,165 @@ export const Index: Record<string, any> = {
description: "A beautiful neon card effect",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/neon-gradient-card.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/neon-gradient-card.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/neon-gradient-card.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "meteors": {
+ meteors: {
name: "meteors",
description: "A meteor shower effect.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/meteors.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/meteors.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/meteors.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"grid-pattern": {
name: "grid-pattern",
- description: "A background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/grid-pattern.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/grid-pattern.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/grid-pattern.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"striped-pattern": {
name: "striped-pattern",
- description: "A background striped pattern made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A background striped pattern made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/striped-pattern.tsx",
- type: "registry:ui",
- target: "components/magicui/striped-pattern.tsx"
- }],
+ files: [
+ {
+ path: "registry/magicui/striped-pattern.tsx",
+ type: "registry:ui",
+ target: "components/magicui/striped-pattern.tsx",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/striped-pattern.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"interactive-grid-pattern": {
name: "interactive-grid-pattern",
- description: "A interactive background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A interactive background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/interactive-grid-pattern.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/interactive-grid-pattern.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/magicui/interactive-grid-pattern.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/magicui/interactive-grid-pattern.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"dot-pattern": {
name: "dot-pattern",
- description: "A background dot pattern made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A background dot pattern made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/dot-pattern.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/dot-pattern.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/dot-pattern.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"flickering-grid": {
name: "flickering-grid",
- description: "A flickering grid background made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A flickering grid background made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/flickering-grid.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/flickering-grid.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/flickering-grid.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -326,14 +446,20 @@ export const Index: Record<string, any> = {
description: "A hero video dialog component.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/hero-video-dialog.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/hero-video-dialog.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/hero-video-dialog.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -343,133 +469,188 @@ export const Index: Record<string, any> = {
description: "A component which compares two code snippets.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/code-comparison.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/code-comparison.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/code-comparison.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "marquee": {
+ marquee: {
name: "marquee",
- description: "An infinite scrolling component that can be used to display text, images, or videos.",
+ description:
+ "An infinite scrolling component that can be used to display text, images, or videos.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/marquee.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/marquee.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/marquee.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "globe": {
+ globe: {
name: "globe",
- description: "An autorotating, interactive, and highly performant globe made using WebGL.",
+ description:
+ "An autorotating, interactive, and highly performant globe made using WebGL.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/globe.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/globe.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/globe.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"shimmer-button": {
name: "shimmer-button",
- description: "A button with a shimmering light which travels around the perimeter.",
+ description:
+ "A button with a shimmering light which travels around the perimeter.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/shimmer-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/shimmer-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/shimmer-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"tweet-card": {
name: "tweet-card",
- description: "A card that displays a tweet with the author's name, handle, and profile picture.",
+ description:
+ "A card that displays a tweet with the author's name, handle, and profile picture.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/tweet-card.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/tweet-card.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/tweet-card.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"client-tweet-card": {
name: "client-tweet-card",
- description: "A client-side version of the tweet card that displays a tweet with the author's name, handle, and profile picture.",
+ description:
+ "A client-side version of the tweet card that displays a tweet with the author's name, handle, and profile picture.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/client-tweet-card.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/client-tweet-card.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/client-tweet-card.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"bento-grid": {
name: "bento-grid",
- description: "Bento grid is a layout used to showcase the features of a product in a simple and elegant way.",
+ description:
+ "Bento grid is a layout used to showcase the features of a product in a simple and elegant way.",
type: "registry:ui",
registryDependencies: ["button"],
- files: [{
- path: "registry/magicui/bento-grid.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/bento-grid.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/bento-grid.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "particles": {
+ particles: {
name: "particles",
- description: "Particles are a fun way to add some visual flair to your website. They can be used to create a sense of depth, movement, and interactivity.",
+ description:
+ "Particles are a fun way to add some visual flair to your website. They can be used to create a sense of depth, movement, and interactivity.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/particles.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/particles.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/particles.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -479,31 +660,44 @@ export const Index: Record<string, any> = {
description: "Animate numbers to count up or down to a target number",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/number-ticker.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/number-ticker.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/number-ticker.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "ripple": {
+ ripple: {
name: "ripple",
- description: "An animated ripple effect typically used behind elements to emphasize them.",
+ description:
+ "An animated ripple effect typically used behind elements to emphasize them.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/ripple.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/ripple.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/ripple.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -513,99 +707,140 @@ export const Index: Record<string, any> = {
description: "An animated scrolling retro grid effect",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/retro-grid.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/retro-grid.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/retro-grid.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-list": {
name: "animated-list",
- description: "A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.",
+ description:
+ "A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-list.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-list.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-list.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-shiny-text": {
name: "animated-shiny-text",
- description: "A light glare effect which pans across text making it appear as if it is shimmering.",
+ description:
+ "A light glare effect which pans across text making it appear as if it is shimmering.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-shiny-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-shiny-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-shiny-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-grid-pattern": {
name: "animated-grid-pattern",
- description: "A animated background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
+ description:
+ "A animated background grid pattern made with SVGs, fully customizable using Tailwind CSS.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-grid-pattern.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-grid-pattern.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-grid-pattern.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"border-beam": {
name: "border-beam",
- description: "An animated beam of light which travels along the border of its container.",
+ description:
+ "An animated beam of light which travels along the border of its container.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/border-beam.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/border-beam.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-beam": {
name: "animated-beam",
- description: "An animated beam of light which travels along a path. Useful for showcasing the integration features of a website.",
+ description:
+ "An animated beam of light which travels along a path. Useful for showcasing the integration features of a website.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-beam.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-beam.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-beam.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -615,82 +850,116 @@ export const Index: Record<string, any> = {
description: "Fade in text as you scroll down the page.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/text-reveal.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/text-reveal.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/text-reveal.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"hyper-text": {
name: "hyper-text",
- description: "A text animation that scrambles letters before revealing the final text.",
+ description:
+ "A text animation that scrambles letters before revealing the final text.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/hyper-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/hyper-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/hyper-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-gradient-text": {
name: "animated-gradient-text",
- description: "An animated gradient background which transitions between colors for text.",
+ description:
+ "An animated gradient background which transitions between colors for text.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-gradient-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-gradient-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-gradient-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"orbiting-circles": {
name: "orbiting-circles",
- description: "A collection of circles which move in orbit along a circular path",
+ description:
+ "A collection of circles which move in orbit along a circular path",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/orbiting-circles.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/orbiting-circles.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/orbiting-circles.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "dock": {
+ dock: {
name: "dock",
- description: "An implementation of the MacOS dock using react + tailwindcss + motion",
+ description:
+ "An implementation of the MacOS dock using react + tailwindcss + motion",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/dock.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/dock.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/dock.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -700,14 +969,20 @@ export const Index: Record<string, any> = {
description: "A vertical rotation of words",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/word-rotate.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/word-rotate.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/word-rotate.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -717,14 +992,20 @@ export const Index: Record<string, any> = {
description: "Overlapping circles of avatars.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/avatar-circles.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/avatar-circles.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/avatar-circles.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -734,48 +1015,68 @@ export const Index: Record<string, any> = {
description: "Characters appearing in typed animation",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/typing-animation.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/typing-animation.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/typing-animation.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"sparkles-text": {
name: "sparkles-text",
- description: "A dynamic text that generates continuous sparkles with smooth transitions, perfect for highlighting text with animated stars.",
+ description:
+ "A dynamic text that generates continuous sparkles with smooth transitions, perfect for highlighting text with animated stars.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/sparkles-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/sparkles-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/sparkles-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"spinning-text": {
name: "spinning-text",
- description: "The Spinning Text component animates text in a circular motion with customizable speed, direction, color, and transitions for dynamic and engaging effects.",
+ description:
+ "The Spinning Text component animates text in a circular motion with customizable speed, direction, color, and transitions for dynamic and engaging effects.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/spinning-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/spinning-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/spinning-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -785,14 +1086,20 @@ export const Index: Record<string, any> = {
description: "Comic text animation",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/comic-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/comic-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/comic-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -802,31 +1109,44 @@ export const Index: Record<string, any> = {
description: "An interactive 3D tag cloud component",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/icon-cloud.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/icon-cloud.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/icon-cloud.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"text-animate": {
name: "text-animate",
- description: "A text animation component that animates text using a variety of different animations.",
+ description:
+ "A text animation component that animates text using a variety of different animations.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/text-animate.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/text-animate.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/text-animate.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -836,31 +1156,44 @@ export const Index: Record<string, any> = {
description: "Scrolling text whose speed changes based on scroll speed",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/scroll-based-velocity.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/scroll-based-velocity.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/scroll-based-velocity.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"shiny-button": {
name: "shiny-button",
- description: "A shiny button component with dynamic styles in the dark mode or light mode.",
+ description:
+ "A shiny button component with dynamic styles in the dark mode or light mode.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/shiny-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/shiny-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/shiny-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -870,48 +1203,70 @@ export const Index: Record<string, any> = {
description: "Shine border is an animated background border effect.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/shine-border.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/shine-border.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/shine-border.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-circular-progress-bar": {
name: "animated-circular-progress-bar",
- description: "Animated Circular Progress Bar is a component that displays a circular gauge with a percentage value.",
+ description:
+ "Animated Circular Progress Bar is a component that displays a circular gauge with a percentage value.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-circular-progress-bar.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-circular-progress-bar.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/magicui/animated-circular-progress-bar.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/magicui/animated-circular-progress-bar.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "confetti": {
+ confetti: {
name: "confetti",
- description: "Confetti animations are best used to delight your users when something special happens",
+ description:
+ "Confetti animations are best used to delight your users when something special happens",
type: "registry:ui",
registryDependencies: ["button"],
- files: [{
- path: "registry/magicui/confetti.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/confetti.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/confetti.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -921,31 +1276,44 @@ export const Index: Record<string, any> = {
description: "Cool mode effect for buttons, links, and other DOMs",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/cool-mode.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/cool-mode.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/cool-mode.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"pulsating-button": {
name: "pulsating-button",
- description: "An animated pulsating button useful for capturing attention of users.",
+ description:
+ "An animated pulsating button useful for capturing attention of users.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/pulsating-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/pulsating-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/pulsating-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -955,82 +1323,114 @@ export const Index: Record<string, any> = {
description: "An animated button with ripple useful for user engagement.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/ripple-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/ripple-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/ripple-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"file-tree": {
name: "file-tree",
- description: "A component used to showcase the folder and file structure of a directory.",
+ description:
+ "A component used to showcase the folder and file structure of a directory.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/file-tree.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/file-tree.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/file-tree.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"blur-fade": {
name: "blur-fade",
- description: "Blur fade in and out animation. Used to smoothly fade in and out content.",
+ description:
+ "Blur fade in and out animation. Used to smoothly fade in and out content.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/blur-fade.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/blur-fade.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/blur-fade.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "safari": {
+ safari: {
name: "safari",
description: "A safari browser mockup to showcase your website.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/safari.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/safari.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/safari.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "iphone": {
+ iphone: {
name: "iphone",
description: "A mockup of the iPhone",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/iphone.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/iphone.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/iphone.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1040,14 +1440,20 @@ export const Index: Record<string, any> = {
description: "An animated button with a rainbow effect.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/rainbow-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/rainbow-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/rainbow-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1057,82 +1463,117 @@ export const Index: Record<string, any> = {
description: "",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/interactive-hover-button.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/interactive-hover-button.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/magicui/interactive-hover-button.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/magicui/interactive-hover-button.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "terminal": {
+ terminal: {
name: "terminal",
description: "A terminal component",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/terminal.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/terminal.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/terminal.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"video-text": {
name: "video-text",
- description: "A component that displays text with a video playing in the background.",
+ description:
+ "A component that displays text with a video playing in the background.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/video-text.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/video-text.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/video-text.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"pixel-image": {
name: "pixel-image",
- description: "A component that displays an image with a pixelated effect, creating a retro aesthetic.",
+ description:
+ "A component that displays an image with a pixelated effect, creating a retro aesthetic.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/pixel-image.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/pixel-image.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/pixel-image.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "highlighter": {
+ highlighter: {
name: "highlighter",
- description: "A text highlighter that mimics the effect of a human-drawn marker stroke.",
+ description:
+ "A text highlighter that mimics the effect of a human-drawn marker stroke.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/highlighter.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/highlighter.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/highlighter.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1142,48 +1583,91 @@ export const Index: Record<string, any> = {
description: "A component for theme changing animation.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/animated-theme-toggler.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/animated-theme-toggler.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/animated-theme-toggler.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"light-rays": {
name: "light-rays",
- description: "A component with animated light rays which shine down from above.",
+ description:
+ "A component with animated light rays which shine down from above.",
type: "registry:ui",
registryDependencies: undefined,
- files: [{
- path: "registry/magicui/light-rays.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/magicui/light-rays.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/magicui/light-rays.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
+ return { default: mod.default || mod[exportName] }
+ }),
+ meta: undefined,
+ },
+ "dotted-map": {
+ name: "dotted-map",
+ description: "A component with a dotted map.",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: [
+ {
+ path: "registry/magicui/dotted-map.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/magicui/dotted-map.tsx")
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"magic-card-demo": {
name: "magic-card-demo",
- description: "Example showing a spotlight effect that follows your mouse cursor and highlights borders on hover.",
+ description:
+ "Example showing a spotlight effect that follows your mouse cursor and highlights borders on hover.",
type: "registry:example",
registryDependencies: ["@magicui/magic-card"],
- files: [{
- path: "registry/example/magic-card-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/magic-card-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/magic-card-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1193,14 +1677,20 @@ export const Index: Record<string, any> = {
description: "Example showing a mockup of an Android device.",
type: "registry:example",
registryDependencies: ["@magicui/android"],
- files: [{
- path: "registry/example/android-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/android-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/android-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1210,14 +1700,20 @@ export const Index: Record<string, any> = {
description: "Second example showing a mockup of an Android device.",
type: "registry:example",
registryDependencies: ["@magicui/android"],
- files: [{
- path: "registry/example/android-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/android-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/android-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1227,31 +1723,44 @@ export const Index: Record<string, any> = {
description: "Third example showing a mockup of an Android device.",
type: "registry:example",
registryDependencies: ["@magicui/android"],
- files: [{
- path: "registry/example/android-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/android-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/android-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"warp-background-demo": {
name: "warp-background-demo",
- description: "Example showing a card with a time warping background effect.",
+ description:
+ "Example showing a card with a time warping background effect.",
type: "registry:example",
registryDependencies: ["@magicui/warp-background"],
- files: [{
- path: "registry/example/warp-background-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/warp-background-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/warp-background-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1261,14 +1770,20 @@ export const Index: Record<string, any> = {
description: "Example showing a text component with a moving line shadow.",
type: "registry:example",
registryDependencies: ["@magicui/line-shadow-text"],
- files: [{
- path: "registry/example/line-shadow-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/line-shadow-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/line-shadow-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1278,14 +1793,20 @@ export const Index: Record<string, any> = {
description: "Example showing a beautiful aurora text effect.",
type: "registry:example",
registryDependencies: ["@magicui/aurora-text"],
- files: [{
- path: "registry/example/aurora-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/aurora-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/aurora-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1295,14 +1816,20 @@ export const Index: Record<string, any> = {
description: "Example showing a dynamic text morphing component.",
type: "registry:example",
registryDependencies: ["@magicui/morphing-text"],
- files: [{
- path: "registry/example/morphing-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/morphing-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/morphing-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1312,14 +1839,20 @@ export const Index: Record<string, any> = {
description: "Example showing animated scroll progress for your pages.",
type: "registry:example",
registryDependencies: ["@magicui/scroll-progress"],
- files: [{
- path: "registry/example/scroll-progress-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/scroll-progress-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/scroll-progress-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1328,15 +1861,21 @@ export const Index: Record<string, any> = {
name: "lens-demo",
description: "Example showing a lens effect component",
type: "registry:example",
- registryDependencies: ["button","card","@magicui/lens"],
- files: [{
- path: "registry/example/lens-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "card", "@magicui/lens"],
+ files: [
+ {
+ path: "registry/example/lens-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/lens-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1345,15 +1884,21 @@ export const Index: Record<string, any> = {
name: "lens-demo-2",
description: "Second example showing a lens effect component",
type: "registry:example",
- registryDependencies: ["button","card","@magicui/lens"],
- files: [{
- path: "registry/example/lens-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "card", "@magicui/lens"],
+ files: [
+ {
+ path: "registry/example/lens-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/lens-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1362,15 +1907,21 @@ export const Index: Record<string, any> = {
name: "lens-demo-3",
description: "Third example showing a lens effect component",
type: "registry:example",
- registryDependencies: ["button","card","@magicui/lens"],
- files: [{
- path: "registry/example/lens-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "card", "@magicui/lens"],
+ files: [
+ {
+ path: "registry/example/lens-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/lens-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1380,14 +1931,20 @@ export const Index: Record<string, any> = {
description: "Example showing a pointer effect component",
type: "registry:example",
registryDependencies: ["@magicui/pointer"],
- files: [{
- path: "registry/example/pointer-demo-1.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/pointer-demo-1.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/pointer-demo-1.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1397,31 +1954,44 @@ export const Index: Record<string, any> = {
description: "Basic smooth cursor example",
type: "registry:example",
registryDependencies: ["@magicui/smooth-cursor"],
- files: [{
- path: "registry/example/smooth-cursor-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/smooth-cursor-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/smooth-cursor-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"progressive-blur-demo": {
name: "progressive-blur-demo",
- description: "Example showing progressive blur effect for scrollable content.",
+ description:
+ "Example showing progressive blur effect for scrollable content.",
type: "registry:example",
registryDependencies: ["@magicui/progressive-blur"],
- files: [{
- path: "registry/example/progressive-blur-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/progressive-blur-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/progressive-blur-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1431,14 +2001,20 @@ export const Index: Record<string, any> = {
description: "Example showing a beautiful neon card effect.",
type: "registry:example",
registryDependencies: ["@magicui/neon-gradient-card"],
- files: [{
- path: "registry/example/neon-gradient-card-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/neon-gradient-card-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/neon-gradient-card-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1448,14 +2024,20 @@ export const Index: Record<string, any> = {
description: "Example showing a meteor shower effect.",
type: "registry:example",
registryDependencies: ["@magicui/meteors"],
- files: [{
- path: "registry/example/meteors-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/meteors-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/meteors-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1465,14 +2047,20 @@ export const Index: Record<string, any> = {
description: "Example showing a background grid pattern made with SVGs.",
type: "registry:example",
registryDependencies: ["@magicui/grid-pattern"],
- files: [{
- path: "registry/example/grid-pattern-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/grid-pattern-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/grid-pattern-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1482,48 +2070,68 @@ export const Index: Record<string, any> = {
description: "Example showing a background striped pattern made with SVGs.",
type: "registry:example",
registryDependencies: ["@magicui/striped-pattern"],
- files: [{
- path: "registry/example/striped-pattern-demo.tsx",
- type: "registry:example",
- target: "components/striped-pattern-demo.tsx"
- }],
+ files: [
+ {
+ path: "registry/example/striped-pattern-demo.tsx",
+ type: "registry:example",
+ target: "components/striped-pattern-demo.tsx",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/striped-pattern-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"striped-pattern-colored": {
name: "striped-pattern-colored",
- description: "Example showing a background striped pattern with a colored stroke.",
+ description:
+ "Example showing a background striped pattern with a colored stroke.",
type: "registry:example",
registryDependencies: ["@magicui/striped-pattern"],
- files: [{
- path: "registry/example/striped-pattern-colored.tsx",
- type: "registry:example",
- target: "components/striped-pattern-colored.tsx"
- }],
+ files: [
+ {
+ path: "registry/example/striped-pattern-colored.tsx",
+ type: "registry:example",
+ target: "components/striped-pattern-colored.tsx",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/striped-pattern-colored.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"striped-pattern-right": {
name: "striped-pattern-right",
- description: "Example showing a background striped pattern slanting to the right using SVG.",
+ description:
+ "Example showing a background striped pattern slanting to the right using SVG.",
type: "registry:example",
registryDependencies: ["@magicui/striped-pattern"],
- files: [{
- path: "registry/example/striped-pattern-right.tsx",
- type: "registry:example",
- target: "components/striped-pattern-right.tsx"
- }],
+ files: [
+ {
+ path: "registry/example/striped-pattern-right.tsx",
+ type: "registry:example",
+ target: "components/striped-pattern-right.tsx",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/striped-pattern-right.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1533,14 +2141,22 @@ export const Index: Record<string, any> = {
description: "Example showing a grid pattern with linear gradient effects.",
type: "registry:example",
registryDependencies: ["@magicui/grid-pattern"],
- files: [{
- path: "registry/example/grid-pattern-linear-gradient.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/grid-pattern-linear-gradient.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/grid-pattern-linear-gradient.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/grid-pattern-linear-gradient.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1550,14 +2166,20 @@ export const Index: Record<string, any> = {
description: "Example showing a dashed grid pattern.",
type: "registry:example",
registryDependencies: ["@magicui/grid-pattern"],
- files: [{
- path: "registry/example/grid-pattern-dashed.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/grid-pattern-dashed.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/grid-pattern-dashed.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1567,14 +2189,20 @@ export const Index: Record<string, any> = {
description: "Example showing a background dot pattern made with SVGs.",
type: "registry:example",
registryDependencies: ["@magicui/dot-pattern"],
- files: [{
- path: "registry/example/dot-pattern-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/dot-pattern-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/dot-pattern-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1584,14 +2212,22 @@ export const Index: Record<string, any> = {
description: "Example showing a dot pattern with linear gradient effects.",
type: "registry:example",
registryDependencies: ["@magicui/dot-pattern"],
- files: [{
- path: "registry/example/dot-pattern-linear-gradient.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/dot-pattern-linear-gradient.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/dot-pattern-linear-gradient.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/dot-pattern-linear-gradient.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1601,14 +2237,22 @@ export const Index: Record<string, any> = {
description: "Example showing a dot pattern with glow effect",
type: "registry:example",
registryDependencies: ["@magicui/dot-pattern"],
- files: [{
- path: "registry/example/dot-pattern-with-glow-effect.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/dot-pattern-with-glow-effect.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/dot-pattern-with-glow-effect.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/dot-pattern-with-glow-effect.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1618,31 +2262,46 @@ export const Index: Record<string, any> = {
description: "Example showing a flickering grid background.",
type: "registry:example",
registryDependencies: ["@magicui/flickering-grid"],
- files: [{
- path: "registry/example/flickering-grid-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/flickering-grid-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/flickering-grid-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"flickering-grid-rounded-demo": {
name: "flickering-grid-rounded-demo",
- description: "Example showing a flickering grid background with rounded corners.",
+ description:
+ "Example showing a flickering grid background with rounded corners.",
type: "registry:example",
registryDependencies: ["@magicui/flickering-grid"],
- files: [{
- path: "registry/example/flickering-grid-rounded-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/flickering-grid-rounded-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/flickering-grid-rounded-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/flickering-grid-rounded-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1652,48 +2311,70 @@ export const Index: Record<string, any> = {
description: "Example showing a hero video dialog component.",
type: "registry:example",
registryDependencies: ["@magicui/hero-video-dialog"],
- files: [{
- path: "registry/example/hero-video-dialog-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/hero-video-dialog-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/hero-video-dialog-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"hero-video-dialog-demo-top-in-bottom-out": {
name: "hero-video-dialog-demo-top-in-bottom-out",
- description: "Example showing a hero video dialog with top-in bottom-out animation.",
+ description:
+ "Example showing a hero video dialog with top-in bottom-out animation.",
type: "registry:example",
registryDependencies: ["@magicui/hero-video-dialog"],
- files: [{
- path: "registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"code-comparison-demo": {
name: "code-comparison-demo",
- description: "Example showing a component which compares two code snippets.",
+ description:
+ "Example showing a component which compares two code snippets.",
type: "registry:example",
registryDependencies: ["@magicui/code-comparison"],
- files: [{
- path: "registry/example/code-comparison-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/code-comparison-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/code-comparison-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1703,14 +2384,20 @@ export const Index: Record<string, any> = {
description: "Example showing an infinite scrolling component.",
type: "registry:example",
registryDependencies: ["@magicui/marquee"],
- files: [{
- path: "registry/example/marquee-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/marquee-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/marquee-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1720,14 +2407,20 @@ export const Index: Record<string, any> = {
description: "Example showing a vertical infinite scrolling component.",
type: "registry:example",
registryDependencies: ["@magicui/marquee"],
- files: [{
- path: "registry/example/marquee-demo-vertical.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/marquee-demo-vertical.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/marquee-demo-vertical.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1737,14 +2430,20 @@ export const Index: Record<string, any> = {
description: "Example showing an infinite scrolling logo carousel.",
type: "registry:example",
registryDependencies: ["@magicui/marquee"],
- files: [{
- path: "registry/example/marquee-logos.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/marquee-logos.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/marquee-logos.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1754,14 +2453,20 @@ export const Index: Record<string, any> = {
description: "Example showing a 3D infinite scrolling component.",
type: "registry:example",
registryDependencies: ["@magicui/marquee"],
- files: [{
- path: "registry/example/marquee-3d.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/marquee-3d.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/marquee-3d.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1771,14 +2476,20 @@ export const Index: Record<string, any> = {
description: "Example showing an autorotating, interactive WebGL globe.",
type: "registry:example",
registryDependencies: ["@magicui/globe"],
- files: [{
- path: "registry/example/globe-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/globe-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/globe-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1788,14 +2499,20 @@ export const Index: Record<string, any> = {
description: "Example showing a tweet card with author info.",
type: "registry:example",
registryDependencies: ["@magicui/tweet-card"],
- files: [{
- path: "registry/example/tweet-card-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/tweet-card-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/tweet-card-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1805,14 +2522,20 @@ export const Index: Record<string, any> = {
description: "Example showing a tweet card with images.",
type: "registry:example",
registryDependencies: ["@magicui/tweet-card"],
- files: [{
- path: "registry/example/tweet-card-images.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/tweet-card-images.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/tweet-card-images.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1822,14 +2545,20 @@ export const Index: Record<string, any> = {
description: "Example showing a tweet card with meta preview.",
type: "registry:example",
registryDependencies: ["@magicui/tweet-card"],
- files: [{
- path: "registry/example/tweet-card-meta-preview.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/tweet-card-meta-preview.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/tweet-card-meta-preview.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1839,14 +2568,20 @@ export const Index: Record<string, any> = {
description: "Example showing a button with a shimmering light effect.",
type: "registry:example",
registryDependencies: ["@magicui/shimmer-button"],
- files: [{
- path: "registry/example/shimmer-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/shimmer-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/shimmer-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1855,15 +2590,28 @@ export const Index: Record<string, any> = {
name: "bento-demo",
description: "Example showing a bento grid layout for showcasing features.",
type: "registry:example",
- registryDependencies: ["button","calendar","@magicui/marquee","@magicui/bento-grid","@magicui/animated-list-demo","@magicui/animated-beam-multiple-outputs"],
- files: [{
- path: "registry/example/bento-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: [
+ "button",
+ "calendar",
+ "@magicui/marquee",
+ "@magicui/bento-grid",
+ "@magicui/animated-list-demo",
+ "@magicui/animated-beam-multiple-outputs",
+ ],
+ files: [
+ {
+ path: "registry/example/bento-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/bento-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1873,14 +2621,20 @@ export const Index: Record<string, any> = {
description: "Example showing a vertical bento grid layout.",
type: "registry:example",
registryDependencies: ["@magicui/bento-grid"],
- files: [{
- path: "registry/example/bento-demo-vertical.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/bento-demo-vertical.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/bento-demo-vertical.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1890,14 +2644,20 @@ export const Index: Record<string, any> = {
description: "Example showing animated counting numbers.",
type: "registry:example",
registryDependencies: ["@magicui/number-ticker"],
- files: [{
- path: "registry/example/number-ticker-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/number-ticker-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/number-ticker-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1907,14 +2667,20 @@ export const Index: Record<string, any> = {
description: "Example showing animated counting numbers.",
type: "registry:example",
registryDependencies: ["@magicui/number-ticker"],
- files: [{
- path: "registry/example/number-ticker-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/number-ticker-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/number-ticker-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1924,14 +2690,22 @@ export const Index: Record<string, any> = {
description: "Example showing animated counting decimal numbers.",
type: "registry:example",
registryDependencies: ["@magicui/number-ticker"],
- files: [{
- path: "registry/example/number-ticker-decimal-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/number-ticker-decimal-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/number-ticker-decimal-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/number-ticker-decimal-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1941,14 +2715,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated ripple effect.",
type: "registry:example",
registryDependencies: ["@magicui/ripple"],
- files: [{
- path: "registry/example/ripple-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/ripple-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/ripple-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1958,14 +2738,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated scrolling retro grid effect.",
type: "registry:example",
registryDependencies: ["@magicui/retro-grid"],
- files: [{
- path: "registry/example/retro-grid-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/retro-grid-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/retro-grid-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1975,14 +2761,20 @@ export const Index: Record<string, any> = {
description: "Example showing a list with sequenced item animations.",
type: "registry:example",
registryDependencies: ["@magicui/animated-list"],
- files: [{
- path: "registry/example/animated-list-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-list-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/animated-list-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -1992,14 +2784,22 @@ export const Index: Record<string, any> = {
description: "Example showing text with a shimmering light effect.",
type: "registry:example",
registryDependencies: ["@magicui/animated-shiny-text"],
- files: [{
- path: "registry/example/animated-shiny-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-shiny-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-shiny-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-shiny-text-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2009,14 +2809,20 @@ export const Index: Record<string, any> = {
description: "Example showing interactive particle effects.",
type: "registry:example",
registryDependencies: ["@magicui/particles"],
- files: [{
- path: "registry/example/particles-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/particles-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/particles-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2026,14 +2832,22 @@ export const Index: Record<string, any> = {
description: "Example showing an animated grid pattern background.",
type: "registry:example",
registryDependencies: ["@magicui/animated-grid-pattern"],
- files: [{
- path: "registry/example/animated-grid-pattern-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-grid-pattern-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-grid-pattern-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-grid-pattern-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2043,31 +2857,48 @@ export const Index: Record<string, any> = {
description: "Example showing an interactive grid pattern background.",
type: "registry:example",
registryDependencies: ["@magicui/interactive-grid-pattern"],
- files: [{
- path: "registry/example/interactive-grid-pattern-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/interactive-grid-pattern-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/interactive-grid-pattern-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/interactive-grid-pattern-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"interactive-grid-pattern-demo-2": {
name: "interactive-grid-pattern-demo-2",
- description: "Second example showing an interactive grid pattern background.",
+ description:
+ "Second example showing an interactive grid pattern background.",
type: "registry:example",
registryDependencies: ["@magicui/interactive-grid-pattern"],
- files: [{
- path: "registry/example/interactive-grid-pattern-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/interactive-grid-pattern-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/interactive-grid-pattern-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/interactive-grid-pattern-demo-2.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2077,14 +2908,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated border beam effect.",
type: "registry:example",
registryDependencies: ["@magicui/border-beam"],
- files: [{
- path: "registry/example/border-beam-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/border-beam-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/border-beam-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2093,15 +2930,21 @@ export const Index: Record<string, any> = {
name: "border-beam-demo-2",
description: "Example showing an animated border beam effect.",
type: "registry:example",
- registryDependencies: ["button","card","@magicui/border-beam"],
- files: [{
- path: "registry/example/border-beam-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "card", "@magicui/border-beam"],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/border-beam-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2110,15 +2953,27 @@ export const Index: Record<string, any> = {
name: "border-beam-demo-3",
description: "Example showing an animated border beam effect.",
type: "registry:example",
- registryDependencies: ["button","card","input","label","@magicui/border-beam"],
- files: [{
- path: "registry/example/border-beam-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: [
+ "button",
+ "card",
+ "input",
+ "label",
+ "@magicui/border-beam",
+ ],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/border-beam-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2127,15 +2982,21 @@ export const Index: Record<string, any> = {
name: "border-beam-demo-4",
description: "Example showing an animated border beam effect.",
type: "registry:example",
- registryDependencies: ["button","@magicui/border-beam"],
- files: [{
- path: "registry/example/border-beam-demo-4.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "@magicui/border-beam"],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-4.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/border-beam-demo-4.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2145,14 +3006,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated beam of light effect.",
type: "registry:example",
registryDependencies: ["@magicui/animated-beam"],
- files: [{
- path: "registry/example/animated-beam-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-beam-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/animated-beam-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2162,14 +3029,22 @@ export const Index: Record<string, any> = {
description: "Example showing a unidirectional animated beam effect.",
type: "registry:example",
registryDependencies: ["@magicui/animated-beam"],
- files: [{
- path: "registry/example/animated-beam-unidirectional.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-beam-unidirectional.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-beam-unidirectional.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-beam-unidirectional.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2179,14 +3054,22 @@ export const Index: Record<string, any> = {
description: "Example showing a bidirectional animated beam effect.",
type: "registry:example",
registryDependencies: ["@magicui/animated-beam"],
- files: [{
- path: "registry/example/animated-beam-bidirectional.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-beam-bidirectional.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-beam-bidirectional.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-beam-bidirectional.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2196,14 +3079,22 @@ export const Index: Record<string, any> = {
description: "Example showing animated beams with multiple input points.",
type: "registry:example",
registryDependencies: ["@magicui/animated-beam"],
- files: [{
- path: "registry/example/animated-beam-multiple-inputs.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-beam-multiple-inputs.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-beam-multiple-inputs.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-beam-multiple-inputs.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2213,14 +3104,22 @@ export const Index: Record<string, any> = {
description: "Example showing animated beams with multiple output points.",
type: "registry:example",
registryDependencies: ["@magicui/animated-beam"],
- files: [{
- path: "registry/example/animated-beam-multiple-outputs.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-beam-multiple-outputs.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-beam-multiple-outputs.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-beam-multiple-outputs.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2230,14 +3129,20 @@ export const Index: Record<string, any> = {
description: "Example showing text that fades in on scroll.",
type: "registry:example",
registryDependencies: ["@magicui/text-reveal"],
- files: [{
- path: "registry/example/text-reveal-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-reveal-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-reveal-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2247,31 +3152,48 @@ export const Index: Record<string, any> = {
description: "Example showing text with animated gradient backgrounds.",
type: "registry:example",
registryDependencies: ["@magicui/animated-gradient-text"],
- files: [{
- path: "registry/example/animated-gradient-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-gradient-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-gradient-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-gradient-text-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"animated-gradient-text-demo-2": {
name: "animated-gradient-text-demo-2",
- description: "Second example showing text with animated gradient backgrounds.",
+ description:
+ "Second example showing text with animated gradient backgrounds.",
type: "registry:example",
registryDependencies: ["@magicui/animated-gradient-text"],
- files: [{
- path: "registry/example/animated-gradient-text-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-gradient-text-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-gradient-text-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-gradient-text-demo-2.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2281,14 +3203,20 @@ export const Index: Record<string, any> = {
description: "Example showing circles moving in orbital paths.",
type: "registry:example",
registryDependencies: ["@magicui/orbiting-circles"],
- files: [{
- path: "registry/example/orbiting-circles-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/orbiting-circles-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/orbiting-circles-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2297,15 +3225,21 @@ export const Index: Record<string, any> = {
name: "dock-demo",
description: "Example showing a MacOS-style dock implementation.",
type: "registry:example",
- registryDependencies: ["button","@magicui/dock"],
- files: [{
- path: "registry/example/dock-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ registryDependencies: ["button", "@magicui/dock"],
+ files: [
+ {
+ path: "registry/example/dock-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/dock-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2315,14 +3249,20 @@ export const Index: Record<string, any> = {
description: "Second example showing a MacOS-style dock implementation.",
type: "registry:example",
registryDependencies: ["@magicui/dock"],
- files: [{
- path: "registry/example/dock-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/dock-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/dock-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2332,14 +3272,20 @@ export const Index: Record<string, any> = {
description: "Third example showing a MacOS-style dock implementation.",
type: "registry:example",
registryDependencies: ["@magicui/dock"],
- files: [{
- path: "registry/example/dock-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/dock-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/dock-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2349,14 +3295,20 @@ export const Index: Record<string, any> = {
description: "Example showing vertical word rotation animation.",
type: "registry:example",
registryDependencies: ["@magicui/word-rotate"],
- files: [{
- path: "registry/example/word-rotate-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/word-rotate-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/word-rotate-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2366,14 +3318,20 @@ export const Index: Record<string, any> = {
description: "Example showing text with scrambling letter animations.",
type: "registry:example",
registryDependencies: ["@magicui/hyper-text"],
- files: [{
- path: "registry/example/hyper-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/hyper-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/hyper-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2383,14 +3341,20 @@ export const Index: Record<string, any> = {
description: "Example showing overlapping avatar circles.",
type: "registry:example",
registryDependencies: ["@magicui/avatar-circles"],
- files: [{
- path: "registry/example/avatar-circles-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/avatar-circles-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/avatar-circles-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2400,14 +3364,20 @@ export const Index: Record<string, any> = {
description: "Example showing typed character animations.",
type: "registry:example",
registryDependencies: ["@magicui/typing-animation"],
- files: [{
- path: "registry/example/typing-animation-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/typing-animation-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/typing-animation-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2417,31 +3387,48 @@ export const Index: Record<string, any> = {
description: "Example showing text speed changes based on scroll velocity.",
type: "registry:example",
registryDependencies: ["@magicui/scroll-based-velocity"],
- files: [{
- path: "registry/example/scroll-based-velocity-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/scroll-based-velocity-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/scroll-based-velocity-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/scroll-based-velocity-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"scroll-based-velocity-images-demo": {
name: "scroll-based-velocity-images-demo",
- description: "Example showing Unsplash images scrolling with speed reacting to scroll velocity.",
+ description:
+ "Example showing Unsplash images scrolling with speed reacting to scroll velocity.",
type: "registry:example",
registryDependencies: ["@magicui/scroll-based-velocity"],
- files: [{
- path: "registry/example/scroll-based-velocity-images-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/scroll-based-velocity-images-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/scroll-based-velocity-images-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/scroll-based-velocity-images-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2451,14 +3438,20 @@ export const Index: Record<string, any> = {
description: "Example showing text with animated sparkle effects.",
type: "registry:example",
registryDependencies: ["@magicui/sparkles-text"],
- files: [{
- path: "registry/example/sparkles-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/sparkles-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/sparkles-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2468,14 +3461,20 @@ export const Index: Record<string, any> = {
description: "Example showing spinning text animation.",
type: "registry:example",
registryDependencies: ["@magicui/spinning-text"],
- files: [{
- path: "registry/example/spinning-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/spinning-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/spinning-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2485,14 +3484,20 @@ export const Index: Record<string, any> = {
description: "Example showing spinning text animation.",
type: "registry:example",
registryDependencies: ["@magicui/spinning-text"],
- files: [{
- path: "registry/example/spinning-text-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/spinning-text-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/spinning-text-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2502,14 +3507,20 @@ export const Index: Record<string, any> = {
description: "Example showing comic text animation.",
type: "registry:example",
registryDependencies: ["@magicui/comic-text"],
- files: [{
- path: "registry/example/comic-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/comic-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/comic-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2519,14 +3530,20 @@ export const Index: Record<string, any> = {
description: "Example showing an interactive 3D icon cloud.",
type: "registry:example",
registryDependencies: ["@magicui/icon-cloud"],
- files: [{
- path: "registry/example/icon-cloud-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/icon-cloud-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/icon-cloud-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2536,14 +3553,20 @@ export const Index: Record<string, any> = {
description: "Second example showing an interactive 3D icon cloud.",
type: "registry:example",
registryDependencies: ["@magicui/icon-cloud"],
- files: [{
- path: "registry/example/icon-cloud-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/icon-cloud-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/icon-cloud-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2553,14 +3576,20 @@ export const Index: Record<string, any> = {
description: "Third example showing an interactive 3D icon cloud.",
type: "registry:example",
registryDependencies: ["@magicui/icon-cloud"],
- files: [{
- path: "registry/example/icon-cloud-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/icon-cloud-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/icon-cloud-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2570,14 +3599,20 @@ export const Index: Record<string, any> = {
description: "Example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2587,14 +3622,20 @@ export const Index: Record<string, any> = {
description: "Second example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2604,14 +3645,20 @@ export const Index: Record<string, any> = {
description: "Third example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2621,14 +3668,20 @@ export const Index: Record<string, any> = {
description: "Fourth example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-4.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-4.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-4.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2638,14 +3691,20 @@ export const Index: Record<string, any> = {
description: "Fifth example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-5.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-5.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-5.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2655,14 +3714,20 @@ export const Index: Record<string, any> = {
description: "Sixth example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-6.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-6.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-6.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2672,14 +3737,20 @@ export const Index: Record<string, any> = {
description: "Seventh example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-7.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-7.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-7.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2689,14 +3760,20 @@ export const Index: Record<string, any> = {
description: "Eighth example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-8.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-8.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-8.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2706,14 +3783,20 @@ export const Index: Record<string, any> = {
description: "Ninth example showing various text animations.",
type: "registry:example",
registryDependencies: ["@magicui/text-animate"],
- files: [{
- path: "registry/example/text-animate-demo-9.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/text-animate-demo-9.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/text-animate-demo-9.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2723,14 +3806,20 @@ export const Index: Record<string, any> = {
description: "Example showing a shiny button with dynamic styles.",
type: "registry:example",
registryDependencies: ["@magicui/shiny-button"],
- files: [{
- path: "registry/example/shiny-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/shiny-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/shiny-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2740,14 +3829,22 @@ export const Index: Record<string, any> = {
description: "Example showing an animated circular progress gauge.",
type: "registry:example",
registryDependencies: ["@magicui/animated-circular-progress-bar"],
- files: [{
- path: "registry/example/animated-circular-progress-bar-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-circular-progress-bar-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-circular-progress-bar-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-circular-progress-bar-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2757,14 +3854,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated shining border effect.",
type: "registry:example",
registryDependencies: ["@magicui/shine-border"],
- files: [{
- path: "registry/example/shine-border-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/shine-border-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/shine-border-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2774,14 +3877,20 @@ export const Index: Record<string, any> = {
description: "Second example showing an animated shining border effect.",
type: "registry:example",
registryDependencies: ["@magicui/shine-border"],
- files: [{
- path: "registry/example/shine-border-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/shine-border-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/shine-border-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2791,14 +3900,20 @@ export const Index: Record<string, any> = {
description: "Example showing confetti animations for celebrations.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2808,14 +3923,20 @@ export const Index: Record<string, any> = {
description: "Example showing basic confetti cannon animation.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-basic-cannon.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-basic-cannon.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-basic-cannon.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2825,14 +3946,22 @@ export const Index: Record<string, any> = {
description: "Example showing confetti with random directions.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-random-direction.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-random-direction.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/confetti-random-direction.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/confetti-random-direction.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2842,14 +3971,20 @@ export const Index: Record<string, any> = {
description: "Example showing fireworks-style confetti animation.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-fireworks.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-fireworks.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-fireworks.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2859,14 +3994,20 @@ export const Index: Record<string, any> = {
description: "Example showing star-shaped confetti animation.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-stars.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-stars.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-stars.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2876,14 +4017,20 @@ export const Index: Record<string, any> = {
description: "Example showing side-mounted confetti cannons.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-side-cannons.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-side-cannons.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-side-cannons.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2893,14 +4040,20 @@ export const Index: Record<string, any> = {
description: "Example showing confetti with custom shape particles.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-custom-shapes.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-custom-shapes.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-custom-shapes.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2910,14 +4063,20 @@ export const Index: Record<string, any> = {
description: "Example showing confetti with emoji particles.",
type: "registry:example",
registryDependencies: ["@magicui/confetti"],
- files: [{
- path: "registry/example/confetti-emoji.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/confetti-emoji.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/confetti-emoji.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2927,14 +4086,20 @@ export const Index: Record<string, any> = {
description: "Example showing cool mode effect for buttons and links.",
type: "registry:example",
registryDependencies: ["@magicui/cool-mode"],
- files: [{
- path: "registry/example/cool-mode-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/cool-mode-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/cool-mode-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2944,14 +4109,20 @@ export const Index: Record<string, any> = {
description: "Example showing customized cool mode effects.",
type: "registry:example",
registryDependencies: ["@magicui/cool-mode"],
- files: [{
- path: "registry/example/cool-mode-custom.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/cool-mode-custom.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/cool-mode-custom.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2961,14 +4132,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated pulsating button.",
type: "registry:example",
registryDependencies: ["@magicui/pulsating-button"],
- files: [{
- path: "registry/example/pulsating-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/pulsating-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/pulsating-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -2978,31 +4155,44 @@ export const Index: Record<string, any> = {
description: "Example showing an animated button with ripple effect.",
type: "registry:example",
registryDependencies: ["@magicui/ripple-button"],
- files: [{
- path: "registry/example/ripple-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/ripple-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/ripple-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"file-tree-demo": {
name: "file-tree-demo",
- description: "Example showing a component that displays folder and file structure.",
+ description:
+ "Example showing a component that displays folder and file structure.",
type: "registry:example",
registryDependencies: ["@magicui/file-tree"],
- files: [{
- path: "registry/example/file-tree-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/file-tree-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/file-tree-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3012,14 +4202,20 @@ export const Index: Record<string, any> = {
description: "Example showing blur fade in and out animations.",
type: "registry:example",
registryDependencies: ["@magicui/blur-fade"],
- files: [{
- path: "registry/example/blur-fade-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/blur-fade-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/blur-fade-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3029,14 +4225,20 @@ export const Index: Record<string, any> = {
description: "Example showing blur fade animations with text.",
type: "registry:example",
registryDependencies: ["@magicui/blur-fade"],
- files: [{
- path: "registry/example/blur-fade-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/blur-fade-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/blur-fade-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3046,14 +4248,20 @@ export const Index: Record<string, any> = {
description: "Example showing a Safari browser mockup.",
type: "registry:example",
registryDependencies: ["@magicui/safari"],
- files: [{
- path: "registry/example/safari-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/safari-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/safari-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3063,14 +4271,20 @@ export const Index: Record<string, any> = {
description: "Second example showing a Safari browser mockup.",
type: "registry:example",
registryDependencies: ["@magicui/safari"],
- files: [{
- path: "registry/example/safari-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/safari-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/safari-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3080,14 +4294,20 @@ export const Index: Record<string, any> = {
description: "Third example showing a Safari browser mockup.",
type: "registry:example",
registryDependencies: ["@magicui/safari"],
- files: [{
- path: "registry/example/safari-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/safari-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/safari-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3097,14 +4317,20 @@ export const Index: Record<string, any> = {
description: "Fourth example showing a Safari browser mockup.",
type: "registry:example",
registryDependencies: ["@magicui/safari"],
- files: [{
- path: "registry/example/safari-demo-4.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/safari-demo-4.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/safari-demo-4.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3114,14 +4340,20 @@ export const Index: Record<string, any> = {
description: "Example showing an iPhone mockup.",
type: "registry:example",
registryDependencies: ["@magicui/iphone"],
- files: [{
- path: "registry/example/iphone-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/iphone-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/iphone-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3131,14 +4363,20 @@ export const Index: Record<string, any> = {
description: "Second example showing an iPhone mockup.",
type: "registry:example",
registryDependencies: ["@magicui/iphone"],
- files: [{
- path: "registry/example/iphone-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/iphone-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/iphone-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3148,14 +4386,20 @@ export const Index: Record<string, any> = {
description: "Third example showing an iPhone mockup.",
type: "registry:example",
registryDependencies: ["@magicui/iphone"],
- files: [{
- path: "registry/example/iphone-demo-3.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/iphone-demo-3.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/iphone-demo-3.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3165,14 +4409,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated button with rainbow effect.",
type: "registry:example",
registryDependencies: ["@magicui/rainbow-button"],
- files: [{
- path: "registry/example/rainbow-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/rainbow-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/rainbow-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3182,14 +4432,20 @@ export const Index: Record<string, any> = {
description: "Example showing an animated button with rainbow effect.",
type: "registry:example",
registryDependencies: ["@magicui/rainbow-button"],
- files: [{
- path: "registry/example/rainbow-button-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/rainbow-button-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/rainbow-button-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3199,14 +4455,22 @@ export const Index: Record<string, any> = {
description: "Example showing an interactive button with hover effects.",
type: "registry:example",
registryDependencies: ["@magicui/interactive-hover-button"],
- files: [{
- path: "registry/example/interactive-hover-button-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/interactive-hover-button-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/interactive-hover-button-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/interactive-hover-button-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3216,31 +4480,44 @@ export const Index: Record<string, any> = {
description: "Example showing a terminal with animated text.",
type: "registry:example",
registryDependencies: ["@magicui/terminal"],
- files: [{
- path: "registry/example/terminal-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/terminal-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/terminal-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"terminal-demo-2": {
name: "terminal-demo-2",
- description: "Example showing a terminal with animated text and custom delays",
+ description:
+ "Example showing a terminal with animated text and custom delays",
type: "registry:example",
registryDependencies: ["@magicui/terminal"],
- files: [{
- path: "registry/example/terminal-demo-2.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/terminal-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/terminal-demo-2.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3250,14 +4527,20 @@ export const Index: Record<string, any> = {
description: "Example showing text with a video background.",
type: "registry:example",
registryDependencies: ["@magicui/video-text"],
- files: [{
- path: "registry/example/video-text-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/video-text-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/video-text-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3267,14 +4550,20 @@ export const Index: Record<string, any> = {
description: "Example showing a pixelated image effect.",
type: "registry:example",
registryDependencies: ["@magicui/pixel-image"],
- files: [{
- path: "registry/example/pixel-image-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/pixel-image-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/pixel-image-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3284,18 +4573,25 @@ export const Index: Record<string, any> = {
description: "Example showing the demo of a Highlighter",
type: "registry:example",
registryDependencies: ["@magicui/highlighter"],
- files: [{
- path: "registry/example/highlighter-demo.tsx",
- type: "registry:example",
- target: ""
- },{
- path: "registry/magicui/highlighter.tsx",
- type: "registry:ui",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/highlighter-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ {
+ path: "registry/magicui/highlighter.tsx",
+ type: "registry:ui",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/highlighter-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
@@ -3305,50 +4601,117 @@ export const Index: Record<string, any> = {
description: "Example showing animation while changing the theme.",
type: "registry:example",
registryDependencies: ["@magicui/animated-theme-toggler"],
- files: [{
- path: "registry/example/animated-theme-toggler-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/animated-theme-toggler-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
- const mod = await import("@/registry/example/animated-theme-toggler-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const mod = await import(
+ "@/registry/example/animated-theme-toggler-demo.tsx"
+ )
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
"light-rays-demo": {
name: "light-rays-demo",
- description: "Demo of the light-rays component showcasing animated light rays",
+ description:
+ "Demo of the light-rays component showcasing animated light rays",
type: "registry:example",
registryDependencies: ["@magicui/light-rays"],
- files: [{
- path: "registry/example/light-rays-demo.tsx",
- type: "registry:example",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/example/light-rays-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/example/light-rays-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
+ return { default: mod.default || mod[exportName] }
+ }),
+ meta: undefined,
+ },
+ "dotted-map-demo": {
+ name: "dotted-map-demo",
+ description: "Example showing a dotted map.",
+ type: "registry:example",
+ registryDependencies: ["@magicui/dotted-map"],
+ files: [
+ {
+ path: "registry/example/dotted-map-demo.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/dotted-map-demo.tsx")
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
+ return { default: mod.default || mod[exportName] }
+ }),
+ meta: undefined,
+ },
+ "dotted-map-demo-2": {
+ name: "dotted-map-demo-2",
+ description: "Example showing a dotted map.",
+ type: "registry:example",
+ registryDependencies: ["@magicui/dotted-map"],
+ files: [
+ {
+ path: "registry/example/dotted-map-demo-2.tsx",
+ type: "registry:example",
+ target: "",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/dotted-map-demo-2.tsx")
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- "utils": {
+ utils: {
name: "utils",
description: "",
type: "registry:lib",
registryDependencies: undefined,
- files: [{
- path: "registry/lib/utils.ts",
- type: "registry:lib",
- target: ""
- }],
+ files: [
+ {
+ path: "registry/lib/utils.ts",
+ type: "registry:lib",
+ target: "",
+ },
+ ],
component: React.lazy(async () => {
const mod = await import("@/registry/lib/utils.ts")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object"
+ ) || item.name
return { default: mod.default || mod[exportName] }
}),
meta: undefined,
},
- }
\ No newline at end of file
+}
diff --git a/apps/www/registry/example/dotted-map-demo-2.tsx b/apps/www/registry/example/dotted-map-demo-2.tsx
new file mode 100644
index 00000000..e0465a29
--- /dev/null
+++ b/apps/www/registry/example/dotted-map-demo-2.tsx
@@ -0,0 +1,9 @@
+import { DottedMap } from "@/registry/magicui/dotted-map"
+
+export default function Component() {
+ return (
+ <div className="relative h-[500px] w-full overflow-hidden rounded-lg border">
+ <DottedMap mapSamples={6000} dotRadius={0.15} />
+ </div>
+ )
+}
diff --git a/apps/www/registry/example/dotted-map-demo.tsx b/apps/www/registry/example/dotted-map-demo.tsx
new file mode 100644
index 00000000..d532fe83
--- /dev/null
+++ b/apps/www/registry/example/dotted-map-demo.tsx
@@ -0,0 +1,33 @@
+import { DottedMap } from "@/registry/magicui/dotted-map"
+
+export default function Component() {
+ return (
+ <div className="relative h-[500px] w-full overflow-hidden rounded-lg border">
+ <div className="to-background absolute inset-0 bg-radial from-transparent to-70%" />
+ <DottedMap
+ markers={[
+ {
+ lat: 40.7128,
+ lng: -74.006,
+ size: 0.5,
+ }, // New York
+ {
+ lat: 34.0522,
+ lng: -118.2437,
+ size: 0.5,
+ }, // Los Angeles
+ {
+ lat: 51.5074,
+ lng: -0.1278,
+ size: 0.5,
+ }, // London
+ {
+ lat: -33.8688,
+ lng: 151.2093,
+ size: 0.5,
+ }, // Sydney
+ ]}
+ />
+ </div>
+ )
+}
diff --git a/apps/www/registry/example/light-rays-demo.tsx b/apps/www/registry/example/light-rays-demo.tsx
index 2148e2f5..c5d25830 100644
--- a/apps/www/registry/example/light-rays-demo.tsx
+++ b/apps/www/registry/example/light-rays-demo.tsx
@@ -1,6 +1,6 @@
import { LightRays } from "@/registry/magicui/light-rays"
-export default function Demo() {
+export default function Component() {
return (
<div className="relative h-[500px] w-full overflow-hidden rounded-lg border">
<div className="relative z-10 flex h-full flex-col items-center justify-center gap-4 px-6 text-center">
diff --git a/apps/www/registry/magicui/dotted-map.tsx b/apps/www/registry/magicui/dotted-map.tsx
new file mode 100644
index 00000000..43482720
--- /dev/null
+++ b/apps/www/registry/magicui/dotted-map.tsx
@@ -0,0 +1,69 @@
+import { createMap } from "svg-dotted-map"
+
+import { cn } from "@/lib/utils"
+
+interface Marker {
+ lat: number
+ lng: number
+ size?: number
+}
+
+export interface DottedMapProps extends React.SVGProps<SVGSVGElement> {
+ width?: number
+ height?: number
+ mapSamples?: number
+ markers?: Marker[]
+ dotColor?: string
+ markerColor?: string
+ dotRadius?: number
+}
+
+export function DottedMap({
+ width = 150,
+ height = 75,
+ mapSamples = 5500,
+ markers = [],
+ markerColor = "#FF6900",
+ dotRadius = 0.2,
+ className,
+ style,
+}: DottedMapProps) {
+ const { points, addMarkers } = createMap({
+ width,
+ height,
+ mapSamples,
+ })
+
+ const processedMarkers = addMarkers(markers)
+
+ return (
+ <svg
+ viewBox={`0 0 ${width} ${height}`}
+ className={cn("fill-black dark:fill-white", className)}
+ style={{ width: "100%", height: "100%", ...style }}
+ >
+ {points.map((point, index) => {
+ return (
+ <circle
+ cx={point.x}
+ cy={point.y}
+ r={dotRadius}
+ fill="currentColor"
+ key={`${point.x}-${point.y}-${index}`}
+ />
+ )
+ })}
+ {processedMarkers.map((marker, index) => {
+ return (
+ <circle
+ cx={marker.x}
+ cy={marker.y}
+ r={marker.size ?? dotRadius}
+ fill={markerColor}
+ key={`${marker.x}-${marker.y}-${index}`}
+ />
+ )
+ })}
+ </svg>
+ )
+}
diff --git a/apps/www/registry/registry-examples.ts b/apps/www/registry/registry-examples.ts
index da5e89e4..7a3fce3a 100644
--- a/apps/www/registry/registry-examples.ts
+++ b/apps/www/registry/registry-examples.ts
@@ -1693,4 +1693,30 @@ export const examples: Registry["items"] = [
},
],
},
+ {
+ name: "dotted-map-demo",
+ type: "registry:example",
+ title: "Dotted Map Demo",
+ description: "Example showing a dotted map.",
+ registryDependencies: ["@magicui/dotted-map"],
+ files: [
+ {
+ path: "example/dotted-map-demo.tsx",
+ type: "registry:example",
+ },
+ ],
+ },
+ {
+ name: "dotted-map-demo-2",
+ type: "registry:example",
+ title: "Dotted Map Demo 2",
+ description: "Example showing a dotted map.",
+ registryDependencies: ["@magicui/dotted-map"],
+ files: [
+ {
+ path: "example/dotted-map-demo-2.tsx",
+ type: "registry:example",
+ },
+ ],
+ },
]
diff --git a/apps/www/registry/registry-ui.ts b/apps/www/registry/registry-ui.ts
index 1c57da4a..1b12091c 100644
--- a/apps/www/registry/registry-ui.ts
+++ b/apps/www/registry/registry-ui.ts
@@ -1169,4 +1169,17 @@ export const ui: Registry["items"] = [
},
],
},
+ {
+ name: "dotted-map",
+ type: "registry:ui",
+ title: "Dotted Map",
+ description: "A component with a dotted map.",
+ dependencies: ["svg-dotted-map"],
+ files: [
+ {
+ path: "magicui/dotted-map.tsx",
+ type: "registry:ui",
+ },
+ ],
+ },
]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 71f2e6b6..0a3a3171 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -179,6 +179,9 @@ importers:
sonner:
specifier: ^1.7.4
+ svg-dotted-map:
+ specifier: ^2.0.1
+ version: 2.0.1
tailwind-merge:
specifier: ^3.3.1
version: 3.3.1
@@ -5402,6 +5405,9 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-eeI2XzIKm23gmSVr7ASTMNVJvxAvBfyL30tN33Y/DcZCJXvC/Br/cxQp9Ts6jDK/e7fkE5TpZStEfduPqPXrIw==}
+
resolution: {integrity: sha512-VvrHQ+9uniE+Mvx3+C9IEe/lWasXCU0nXMY2kZeLrHNICuRiC8uMPyM14UEaMOFA5mhyQqEkB02VoQ16n3DLaw==}
engines: {node: '>=16'}
@@ -11695,6 +11701,8 @@ snapshots:
+
dependencies:
commander: 11.1.0