diff --git a/src/components/codeBlock.svelte b/src/components/codeBlock.svelte new file mode 100644 index 0000000..ab158ae --- /dev/null +++ b/src/components/codeBlock.svelte @@ -0,0 +1,71 @@ + + +
+ + {#if Icon} + + {/if} + + {code} + +
diff --git a/src/components/svgs/copyShadcnCommand.svelte b/src/components/svgs/copyShadcnCommand.svelte index 63fb42b..06ba0bc 100644 --- a/src/components/svgs/copyShadcnCommand.svelte +++ b/src/components/svgs/copyShadcnCommand.svelte @@ -1,11 +1,11 @@
+ + + - -
-
- - - {shadcnCommand} @svgl/{svgFormatTitle} -
+ diff --git a/src/components/svgs/setupShadcnRegistry.svelte b/src/components/svgs/setupShadcnRegistry.svelte new file mode 100644 index 0000000..c96c5c3 --- /dev/null +++ b/src/components/svgs/setupShadcnRegistry.svelte @@ -0,0 +1,38 @@ + + + + + {@render children?.()} + + + + Setup shadcn/ui registry + + Use the code below to configure the @svgl registry for your project. + + +

+ 1. Copy and paste the code into + components.json: +

+ +

2. Then use the following command to add SVGs:

+ +
+