UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
feat: improve striped pattern demo
Dillion Vermac0f423211422
diff --git a/apps/www/content/docs/components/striped-pattern.mdx b/apps/www/content/docs/components/striped-pattern.mdxindex d0ae969c..5e1eba9e 100644--- a/apps/www/content/docs/components/striped-pattern.mdx+++ b/apps/www/content/docs/components/striped-pattern.mdx@@ -30,7 +30,7 @@ npx shadcn@latest add "https://magicui.design/r/striped-pattern"<Step>Copy and paste the following code into your project.</Step>-<ComponentSource name="grid-pattern" />+<ComponentSource name="striped-pattern" /><Step>Update the import paths to match your project setup.</Step>@@ -42,9 +42,9 @@ npx shadcn@latest add "https://magicui.design/r/striped-pattern"## Examples-### Striped Pattern with a colored stroke+### Striped Pattern with a dashed stroke-<ComponentPreview name="striped-pattern-colored" />+<ComponentPreview name="striped-pattern-dashed" />### Striped Pattern To Rightdiff --git a/apps/www/public/llms-full.txt b/apps/www/public/llms-full.txtindex 87b33138..8bb8cf05 100644--- a/apps/www/public/llms-full.txt+++ b/apps/www/public/llms-full.txt@@ -13869,16 +13869,16 @@ export default function StripedPatternDemo() {}-===== EXAMPLE: striped-pattern-colored =====-Title: Striped Pattern (Colored)+===== EXAMPLE: striped-pattern-dashed =====+Title: Striped Pattern (Dashed)---- file: example/striped-pattern-colored.tsx ---+--- file: example/striped-pattern-dashed.tsx ---import { StripedPattern } from "@/registry/magicui/striped-pattern"-export default function StripedPatternColored() {+export default function Component() {return (<div className="relative flex h-[300px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">- <StripedPattern className="stroke-[0.3] text-orange-500/60" />+ <StripedPattern className="stroke-[0.3] [stroke-dasharray:8,4]" /></div>)}diff --git a/apps/www/public/llms.txt b/apps/www/public/llms.txtindex e8f4aed2..d827ced9 100644--- a/apps/www/public/llms.txt+++ b/apps/www/public/llms.txt@@ -97,7 +97,7 @@ This file provides LLM-friendly entry points to documentation and examples.- [Meteors Demo](https://github.com/magicuidesign/magicui/blob/main/example/meteors-demo.tsx): Example usage- [Grid Pattern Demo](https://github.com/magicuidesign/magicui/blob/main/example/grid-pattern-demo.tsx): Example usage- [Striped Pattern Demo](https://github.com/magicuidesign/magicui/blob/main/example/striped-pattern-demo.tsx): Example usage-- [Striped Pattern (Colored)](https://github.com/magicuidesign/magicui/blob/main/example/striped-pattern-colored.tsx): Example usage+- [Striped Pattern (Dashed)](https://github.com/magicuidesign/magicui/blob/main/example/striped-pattern-dashed.tsx): Example usage- [Striped Pattern (Right)](https://github.com/magicuidesign/magicui/blob/main/example/striped-pattern-right.tsx): Example usage- [Grid Pattern Linear Gradient](https://github.com/magicuidesign/magicui/blob/main/example/grid-pattern-linear-gradient.tsx): Example usage- [Grid Pattern Dashed](https://github.com/magicuidesign/magicui/blob/main/example/grid-pattern-dashed.tsx): Example usagediff --git a/apps/www/public/r/registry.json b/apps/www/public/r/registry.jsonindex 703a0b9e..09e74807 100644--- a/apps/www/public/r/registry.json+++ b/apps/www/public/r/registry.json@@ -1537,18 +1537,18 @@]},{- "name": "striped-pattern-colored",+ "name": "striped-pattern-dashed","type": "registry:example",- "title": "Striped Pattern (Colored)",- "description": "Example showing a background striped pattern with a colored stroke.",+ "title": "Striped Pattern (Dashed)",+ "description": "Example showing a background striped pattern with a dashed stroke.","registryDependencies": ["@magicui/striped-pattern"],"files": [{- "path": "registry/example/striped-pattern-colored.tsx",+ "path": "registry/example/striped-pattern-dashed.tsx","type": "registry:example",- "target": "components/striped-pattern-colored.tsx"+ "target": "components/striped-pattern-dashed.tsx"}]},diff --git a/apps/www/public/r/striped-pattern-dashed.json b/apps/www/public/r/striped-pattern-dashed.jsonnew file mode 100644index 00000000..86e62981--- /dev/null+++ b/apps/www/public/r/striped-pattern-dashed.json@@ -0,0 +1,18 @@+{+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",+ "name": "striped-pattern-dashed",+ "type": "registry:example",+ "title": "Striped Pattern (Dashed)",+ "description": "Example showing a background striped pattern with a dashed stroke.",+ "registryDependencies": [+ "@magicui/striped-pattern"+ ],+ "files": [+ {+ "path": "registry/example/striped-pattern-dashed.tsx",+ "content": "import { StripedPattern } from \"@/registry/magicui/striped-pattern\"\n\nexport default function Component() {\n return (\n <div className=\"relative flex h-[300px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border\">\n <StripedPattern className=\"stroke-[0.3] [stroke-dasharray:8,4]\" />\n </div>\n )\n}\n",+ "type": "registry:example",+ "target": "components/striped-pattern-dashed.tsx"+ }+ ]+}\ No newline at end of filediff --git a/apps/www/public/registry.json b/apps/www/public/registry.jsonindex 703a0b9e..09e74807 100644--- a/apps/www/public/registry.json+++ b/apps/www/public/registry.json@@ -1537,18 +1537,18 @@]},{- "name": "striped-pattern-colored",+ "name": "striped-pattern-dashed","type": "registry:example",- "title": "Striped Pattern (Colored)",- "description": "Example showing a background striped pattern with a colored stroke.",+ "title": "Striped Pattern (Dashed)",+ "description": "Example showing a background striped pattern with a dashed stroke.","registryDependencies": ["@magicui/striped-pattern"],"files": [{- "path": "registry/example/striped-pattern-colored.tsx",+ "path": "registry/example/striped-pattern-dashed.tsx","type": "registry:example",- "target": "components/striped-pattern-colored.tsx"+ "target": "components/striped-pattern-dashed.tsx"}]},diff --git a/apps/www/registry.json b/apps/www/registry.jsonindex 703a0b9e..09e74807 100644--- a/apps/www/registry.json+++ b/apps/www/registry.json@@ -1537,18 +1537,18 @@]},{- "name": "striped-pattern-colored",+ "name": "striped-pattern-dashed","type": "registry:example",- "title": "Striped Pattern (Colored)",- "description": "Example showing a background striped pattern with a colored stroke.",+ "title": "Striped Pattern (Dashed)",+ "description": "Example showing a background striped pattern with a dashed stroke.","registryDependencies": ["@magicui/striped-pattern"],"files": [{- "path": "registry/example/striped-pattern-colored.tsx",+ "path": "registry/example/striped-pattern-dashed.tsx","type": "registry:example",- "target": "components/striped-pattern-colored.tsx"+ "target": "components/striped-pattern-dashed.tsx"}]},diff --git a/apps/www/registry/__index__.tsx b/apps/www/registry/__index__.tsxindex 75d00291..cb204ba3 100644--- a/apps/www/registry/__index__.tsx+++ b/apps/www/registry/__index__.tsx@@ -1511,18 +1511,18 @@ export const Index: Record<string, any> = {}),meta: undefined,},- "striped-pattern-colored": {- name: "striped-pattern-colored",- description: "Example showing a background striped pattern with a colored stroke.",+ "striped-pattern-dashed": {+ name: "striped-pattern-dashed",+ description: "Example showing a background striped pattern with a dashed stroke.",type: "registry:example",registryDependencies: ["@magicui/striped-pattern"],files: [{- path: "registry/example/striped-pattern-colored.tsx",+ path: "registry/example/striped-pattern-dashed.tsx",type: "registry:example",- target: "components/striped-pattern-colored.tsx"+ target: "components/striped-pattern-dashed.tsx"}],component: React.lazy(async () => {- const mod = await import("@/registry/example/striped-pattern-colored.tsx")+ const mod = await import("@/registry/example/striped-pattern-dashed.tsx")const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.namereturn { default: mod.default || mod[exportName] }}),diff --git a/apps/www/registry/example/striped-pattern-colored.tsx b/apps/www/registry/example/striped-pattern-dashed.tsxsimilarity index 65%rename from apps/www/registry/example/striped-pattern-colored.tsxrename to apps/www/registry/example/striped-pattern-dashed.tsxindex a8f17b70..65c47ff5 100644--- a/apps/www/registry/example/striped-pattern-colored.tsx+++ b/apps/www/registry/example/striped-pattern-dashed.tsx@@ -1,9 +1,9 @@import { StripedPattern } from "@/registry/magicui/striped-pattern"-export default function StripedPatternColored() {+export default function Component() {return (<div className="relative flex h-[300px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">- <StripedPattern className="stroke-[0.3] text-orange-500/60" />+ <StripedPattern className="stroke-[0.3] [stroke-dasharray:8,4]" /></div>)}diff --git a/apps/www/registry/registry-examples.ts b/apps/www/registry/registry-examples.tsindex 7a3fce3a..cceba264 100644--- a/apps/www/registry/registry-examples.ts+++ b/apps/www/registry/registry-examples.ts@@ -252,17 +252,17 @@ export const examples: Registry["items"] = [],},{- name: "striped-pattern-colored",+ name: "striped-pattern-dashed",type: "registry:example",- title: "Striped Pattern (Colored)",+ title: "Striped Pattern (Dashed)",description:- "Example showing a background striped pattern with a colored stroke.",+ "Example showing a background striped pattern with a dashed stroke.",registryDependencies: ["@magicui/striped-pattern"],files: [{- path: "example/striped-pattern-colored.tsx",+ path: "example/striped-pattern-dashed.tsx",type: "registry:example",- target: "components/striped-pattern-colored.tsx",+ target: "components/striped-pattern-dashed.tsx",},],},