UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
dillion/cli docs (#195)
Dillion Verma5869814ffb98
diff --git a/components/commit-list.tsx b/components/commit-list.tsxindex 3016fef3..493d6a52 100644--- a/components/commit-list.tsx+++ b/components/commit-list.tsx@@ -48,7 +48,7 @@ export default function CommitList({return (<ul>{commits.map((commit, index) => (- <li key={index} className="not-prose">+ <li key={index}>{commit?.commit?.message}{" "}<Badge className="ml-2">{formatDistanceToNow(new Date(commit?.commit?.author?.date), {diff --git a/components/component-installation.tsx b/components/component-installation.tsxindex 503068e1..886437a2 100644--- a/components/component-installation.tsx+++ b/components/component-installation.tsx@@ -11,10 +11,7 @@ export function ComponentInstallation({...props}: ComponentInstallationProps) {return (- <div- className="not-prose mt-8 grid gap-4 sm:grid-cols-2 sm:gap-6"- {...props}- >+ <div className="mt-8 grid gap-4 sm:grid-cols-2 sm:gap-6" {...props}><aclassName="flex w-full flex-col items-center rounded-xl border bg-card p-6 text-card-foreground shadow transition-colors hover:bg-muted/50 sm:p-10"href="/docs/installation/react"diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsxindex 25cb9a17..baa35aa0 100644--- a/components/component-wrapper.tsx+++ b/components/component-wrapper.tsx@@ -8,7 +8,7 @@ const ComponentWrapper = ({ className, children }: ComponentWrapperProps) => {return (<divclassName={cn(- "not-prose max-w-screen relative flex flex-col items-center justify-center rounded-xl bg-background p-0 md:border md:p-16",+ "max-w-screen relative flex flex-col items-center justify-center rounded-xl bg-background p-0 md:border md:p-16",className,)}>diff --git a/components/mdx-components.tsx b/components/mdx-components.tsxindex e8d6abdc..69e36f91 100644--- a/components/mdx-components.tsx+++ b/components/mdx-components.tsx@@ -10,6 +10,7 @@ import {AccordionItem,AccordionTrigger,} from "@/components/ui/accordion";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";import TechStack from "@/components/tech-stack";import TweetCard from "@/registry/components/magicui/tweet-card";@@ -96,19 +97,17 @@ const components = {{...props}/>),- a: (props: any) => (- <CustomLink- {...props}- className={"font-medium underline underline-offset-4"}- />- ),Image,- Tweet: ({ id }: { id: string }) => (- <TweetCard id={id} className="not-prose mx-auto" />- ),+ Tweet: ({ id }: { id: string }) => <TweetCard id={id} className="mx-auto" />,ComponentPreview,ComponentSource: (props: any) => <ComponentSource {...props} />,ComponentInstallation: (props: any) => <ComponentInstallation {...props} />,+ a: ({ className, ...props }: React.HTMLAttributes<HTMLAnchorElement>) => (+ <CustomLink+ className={cn("font-medium underline underline-offset-4", className)}+ {...props}+ />+ ),p: ({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => (<pclassName={cn("leading-7 [&:not(:first-child)]:mt-6", className)}@@ -116,10 +115,10 @@ const components = {/>),ul: ({ className, ...props }: React.HTMLAttributes<HTMLUListElement>) => (- <ul className={cn("my-6 list-disc", className)} {...props} />+ <ul className={cn("my-6 ml-6 list-disc", className)} {...props} />),ol: ({ className, ...props }: React.HTMLAttributes<HTMLOListElement>) => (- <ol className={cn("my-6 list-decimal", className)} {...props} />+ <ol className={cn("my-6 ml-6 list-decimal", className)} {...props} />),li: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (<li className={cn("mt-2", className)} {...props} />@@ -131,7 +130,7 @@ const components = {/>),table: ({ className, ...props }: React.HTMLAttributes<HTMLTableElement>) => (- <div className="w-full overflow-y-auto">+ <div className="my-6 w-full overflow-y-auto"><table className={cn("w-full", className)} {...props} /></div>),@@ -150,14 +149,14 @@ const components = {td: ({ className, ...props }: React.HTMLAttributes<HTMLTableCellElement>) => (<tdclassName={cn(- "whitespace-pre border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",+ "border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",className,)}{...props}/>),Step: ({ className, ...props }: React.ComponentProps<"h3">) => (- <div+ <h3className={cn("font-heading mt-8 scroll-m-20 text-xl font-semibold tracking-tight",className,@@ -171,7 +170,45 @@ const components = {{...props}/>),-+ Tabs: ({ className, ...props }: React.ComponentProps<typeof Tabs>) => (+ <Tabs className={cn("relative mt-6 w-full", className)} {...props} />+ ),+ TabsList: ({+ className,+ ...props+ }: React.ComponentProps<typeof TabsList>) => (+ <TabsList+ className={cn(+ "w-full justify-start rounded-none border-b bg-transparent p-0",+ className,+ )}+ {...props}+ />+ ),+ TabsTrigger: ({+ className,+ ...props+ }: React.ComponentProps<typeof TabsTrigger>) => (+ <TabsTrigger+ className={cn(+ "relative h-9 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 font-semibold text-muted-foreground shadow-none transition-none data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none",+ className,+ )}+ {...props}+ />+ ),+ TabsContent: ({+ className,+ ...props+ }: React.ComponentProps<typeof TabsContent>) => (+ <TabsContent+ className={cn(+ "relative [&_h3.font-heading]:text-base [&_h3.font-heading]:font-semibold",+ className,+ )}+ {...props}+ />+ ),pre: ({className,__rawString__,@@ -222,6 +259,15 @@ const components = {</>);},+ code: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (+ <code+ className={cn(+ "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm",+ className,+ )}+ {...props}+ />+ ),};interface MDXProps {@@ -232,14 +278,7 @@ export function Mdx({ code }: MDXProps) {const Component = useMDXComponent(code);return (- <article- className={cn(- "max-w-[120ch]",- `leading-tighter prose prose-gray tracking-tighter dark:prose-invert`,- `prose-pre:mb-4 prose-pre:mt-6 prose-pre:max-h-[650px] prose-pre:overflow-x-auto prose-pre:rounded-lg prose-pre:border prose-pre:px-0 prose-pre:py-4 prose-pre:text-xs prose-pre:tracking-tighter md:prose-pre:text-sm`,- )}- >- {/* @ts-ignore */}+ <article className={cn("max-w-[120ch]")}><Component components={components} /></article>);diff --git a/components/tech-stack.tsx b/components/tech-stack.tsxindex 815c8361..4d052567 100644--- a/components/tech-stack.tsx+++ b/components/tech-stack.tsx@@ -139,7 +139,7 @@ export default function TechStack({className?: string;}) {return (- <div className={cn("not-prose flex flex-row gap-2", className)}>+ <div className={cn("flex flex-row gap-2", className)}>{technologies.map((tech) => (<Tooltip key={tech}><TooltipTrigger>{techComponents[tech].icon}</TooltipTrigger>diff --git a/config/docs.ts b/config/docs.tsindex cc39991f..e9ef5ee2 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -26,6 +26,11 @@ export const docsConfig: DocsConfig = {href: "/docs",items: [],},+ {+ title: "CLI",+ href: "/docs/cli",+ items: [],+ },{title: "Installation",href: "/docs/installation",diff --git a/content/docs/cli.mdx b/content/docs/cli.mdxindex d6ffc3cf..2beaf18c 100644--- a/content/docs/cli.mdx+++ b/content/docs/cli.mdx@@ -13,16 +13,16 @@ The `init` command installs dependencies (`framer-motion`), adds the `cn` util,npx magicui-cli init```+### shadcn-ui project-### shadcn-ui projectIf your project is already using the `shadcn-ui`, don't worry! You can still use magicui.-```bashnpx shadcn-ui init```Just add these two lines to your `components,json` file:+```diff{"$schema": "https://ui.shadcn.com/schema.json",@@ -61,17 +61,17 @@ npx magicui-cli add bento-grid```You can also use the optional `--all` flag to install all components:+```bashnpx magicui-cli add --all```You can also use the `--exmaple` flag to select and install example & demo you saw on webside:+```bashnpx magicui-cli add --example```--You can also run the command without any arguments to view a list of all available components:```bash@@ -85,6 +85,7 @@ You can also use the same CLI for selecting & installing shadcn-ui components:```bashnpx magicui-cli add --shadcn button```+```bashnpx magicui-cli add --shadcn --all```diff --git a/content/docs/components/animated-beam.mdx b/content/docs/components/animated-beam.mdxindex 36a1c071..0c6e52c3 100644--- a/content/docs/components/animated-beam.mdx+++ b/content/docs/components/animated-beam.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/animated-beam.mp4<ComponentPreview name="animated-beam-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/animated-beam.tsx+```bash+npx magicui-cli add animated-beam```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="animated-beam" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## UsageTo create an animated beam, you need a container element with a ref, and two elements with refs that the beam will travel between.diff --git a/content/docs/components/animated-gradient-text.mdx b/content/docs/components/animated-gradient-text.mdxindex bd409a70..94c98e73 100644--- a/content/docs/components/animated-gradient-text.mdx+++ b/content/docs/components/animated-gradient-text.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/animated-gradient-text.mp4<ComponentPreview name="animated-gradient-text-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add animated-gradient-text+```-Copy and paste the following code into your project.+<Step>Update `tailwind.config.js`</Step>-```js-// tailwind.config.js+Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -35,14 +51,50 @@ module.exports = {};```-```text-components/magicui/animated-gradient-text.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="animated-gradient-text" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ gradient: "gradient 8s linear infinite",+ },+ keyframes: {+ gradient: {+ to: {+ backgroundPosition: "var(--bg-size) 0",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/animated-grid-pattern.mdx b/content/docs/components/animated-grid-pattern.mdxindex 3c179ab9..e6af8547 100644--- a/content/docs/components/animated-grid-pattern.mdx+++ b/content/docs/components/animated-grid-pattern.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="animated-grid-pattern-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/animated-grid-pattern.tsx+```bash+npx magicui-cli add animated-grid-pattern```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="animated-grid-pattern" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### GridPatterndiff --git a/content/docs/components/animated-lines.mdx b/content/docs/components/animated-lines.mdxdeleted file mode 100644index 445f5fdd..00000000--- a/content/docs/components/animated-lines.mdx+++ /dev/null@@ -1,56 +0,0 @@-----title: Animated Lines-date: 2023-12-19-description: A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.-author: dillionverma-published: false-video: https://cdn.magicui.design/animated-lines.mp4------<ComponentPreview name="animated-lines-demo" />--<Steps>--<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge framer-motion-```--Copy and paste the following code into your project.--```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```--</Step>--<Step>--## Installation--Copy and paste the following code into your project.--```text-components/magicui/animated-lines.tsx-```--<ComponentSource name="animated-lines" />--</Step>--</Steps>--## Props--| Prop | Type | Description | Default |-| --------- | ------ | -------------------------------- | ------- |-| className | string | The class name for the component | "" |diff --git a/content/docs/components/animated-list.mdx b/content/docs/components/animated-list.mdxindex 68640b9f..0c4f0c5c 100644--- a/content/docs/components/animated-list.mdx+++ b/content/docs/components/animated-list.mdx@@ -8,22 +8,42 @@ published: true<ComponentPreview name="animated-list-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/animated-list.tsx+```bash+npx magicui-cli add animated-list```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="animated-list" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props+### Animated List+| Prop | Type | Description | Default || --------- | ------ | --------------------------------- | ------- || className | string | The class name for the component | "" |diff --git a/content/docs/components/animated-shiny-text.mdx b/content/docs/components/animated-shiny-text.mdxindex 9aa60e94..fefbaf81 100644--- a/content/docs/components/animated-shiny-text.mdx+++ b/content/docs/components/animated-shiny-text.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/animated-shiny-text.mp4<ComponentPreview name="animated-shiny-text-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add animated-shiny-text+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -38,14 +54,53 @@ module.exports = {};```-```text-components/magicui/animated-shiny-text.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="animated-shiny-text" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ shimmer: "shimmer 8s infinite",+ },+ keyframes: {+ shimmer: {+ "0%, 90%, 100%": {+ "background-position": "calc(-100% - var(--shimmer-width)) 0",+ },+ "30%, 60%": {+ "background-position": "calc(100% + var(--shimmer-width)) 0",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/animated-subscribe-button.mdx b/content/docs/components/animated-subscribe-button.mdxindex f1161cad..399fbd7c 100644--- a/content/docs/components/animated-subscribe-button.mdx+++ b/content/docs/components/animated-subscribe-button.mdx@@ -8,29 +8,47 @@ published: true<ComponentPreview name="animated-subscribe-button-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/animated-subscribe-button.tsx+```bash+npx magicui-cli add animated-subscribe-button```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="animated-subscribe-button" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props-| Prop | Type | Description |-| ------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| **buttonColor** | string | The accent color for the button. This allows you to set a custom color that matches your brand's theme. |-| **buttonTextColor** | string | The color of the button text. This allows you to ensure the text is visible and matches your desired color scheme. |-| **subscribeStatus** | boolean | A boolean flag to check the condition for the button. This property can be used to toggle the button's state, such as subscribed or unsubscribed. |-| **initialText** | string | The initial text displayed on the button. This is useful for setting a default label when the button first appears. |-| **changeText** | string | The final text displayed on the button after an action has been taken. This can be used to indicate a state change, such as from "Subscribe" to "Subscribed". |+| Prop | Type | Description |+| --------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| buttonColor | string | The accent color for the button. This allows you to set a custom color that matches your brand's theme. |+| buttonTextColor | string | The color of the button text. This allows you to ensure the text is visible and matches your desired color scheme. |+| subscribeStatus | boolean | A boolean flag to check the condition for the button. This property can be used to toggle the button's state, such as subscribed or unsubscribed. |+| initialText | string | The initial text displayed on the button. This is useful for setting a default label when the button first appears. |+| changeText | string | The final text displayed on the button after an action has been taken. This can be used to indicate a state change, such as from "Subscribe" to "Subscribed". |## Creditsdiff --git a/content/docs/components/avatar-circles.mdx b/content/docs/components/avatar-circles.mdxindex f50734c5..7eb9c8d3 100644--- a/content/docs/components/avatar-circles.mdx+++ b/content/docs/components/avatar-circles.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="avatar-circles-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/avatar-circles.tsx+```bash+npx magicui-cli add avatar-circles```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="avatar-circles" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/bento-grid.mdx b/content/docs/components/bento-grid.mdxindex 395b646f..cebf34da 100644--- a/content/docs/components/bento-grid.mdx+++ b/content/docs/components/bento-grid.mdx@@ -8,29 +8,38 @@ published: true<ComponentPreview name="bento-demo" />-<Steps>+## Installation++<Tabs defaultValue="cli">-### Prerequisites+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">```bash-npm install @radix-ui/react-icons-npx shadcn-ui@latest add button calendar command+npx magicui-cli add bento-grid```-Install [**marquee**](/components/marquee) from Magic UI.+</TabsContent>-### Installation+<TabsContent value="manual">-Copy and paste the following code into your project.+<Steps>-```text-components/magicui/bento-grid.tsx-```+<Step>Copy and paste the following code into your project.</Step><ComponentSource name="bento-grid" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples<ComponentPreview name="bento-demo-vertical" />diff --git a/content/docs/components/blur-in.mdx b/content/docs/components/blur-in.mdxindex 82f3a4f4..fd69066f 100644--- a/content/docs/components/blur-in.mdx+++ b/content/docs/components/blur-in.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="blur-in-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/blur-in.tsx+```bash+npx magicui-cli add blur-in```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="blur-in" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/border-beam.mdx b/content/docs/components/border-beam.mdxindex 3e85a232..540548cd 100644--- a/content/docs/components/border-beam.mdx+++ b/content/docs/components/border-beam.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/border-beam.mp4<ComponentPreview name="border-beam-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add border-beam+```-Copy and paste the following code into your project.+<Step>Update `tailwind.config.js`</Step>-```js-// tailwind.config.js+Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -35,14 +51,50 @@ module.exports = {};```-```text-components/magicui/border-beam.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="border-beam" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ "border-beam": "border-beam calc(var(--duration)*1s) infinite linear",+ },+ keyframes: {+ "border-beam": {+ "100%": {+ "offset-distance": "100%",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## UsageJust place the border beam component inside a div with relative positioning, width, and height. You will notice the beam automatically moves around the perimeter of it's container.diff --git a/content/docs/components/box-reveal.mdx b/content/docs/components/box-reveal.mdxindex de3bf17b..375625b8 100644--- a/content/docs/components/box-reveal.mdx+++ b/content/docs/components/box-reveal.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="box-reveal-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/box-reveal.tsx+```bash+npx magicui-cli add box-reveal```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="box-reveal" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/confetti.mdx b/content/docs/components/confetti.mdxindex 6678500a..722345bb 100644--- a/content/docs/components/confetti.mdx+++ b/content/docs/components/confetti.mdx@@ -8,26 +8,50 @@ published: true<ComponentPreview name="confetti-hover" />-<Steps>+## Installation++<Tabs defaultValue="cli">-### Installation+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">++<Steps>-The confetti is built on canvas confetti.+<Step>Run the following command:</Step>```bash-npm install --save canvas-confetti+npx magicui-cli add confetti```-Copy and paste the following code into your project.+</Steps>++</TabsContent>-```text-components/magicui/confetti.tsx+<TabsContent value="manual">++<Steps>++<Step>Install the following dependencies:</Step>++```bash+npm install canvas-confetti```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="confetti" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples### Basicdiff --git a/content/docs/components/cool-mode.mdx b/content/docs/components/cool-mode.mdxindex 9b94e0c7..3012d382 100644--- a/content/docs/components/cool-mode.mdx+++ b/content/docs/components/cool-mode.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="cool-mode-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/cool-mode.tsx+```bash+npx magicui-cli add cool-mode```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="cool-mode" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples### Custom Particlediff --git a/content/docs/components/dock.mdx b/content/docs/components/dock.mdxindex bc9e6051..62e90683 100644--- a/content/docs/components/dock.mdx+++ b/content/docs/components/dock.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/dock.mp4<ComponentPreview name="dock-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/dock.tsx+```bash+npx magicui-cli add dock```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="dock" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### Dockdiff --git a/content/docs/components/dot-pattern.mdx b/content/docs/components/dot-pattern.mdxindex 3a062b2f..06f026f7 100644--- a/content/docs/components/dot-pattern.mdx+++ b/content/docs/components/dot-pattern.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/dot-pattern.mp4<ComponentPreview name="dot-pattern-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/dot-pattern.tsx+```bash+npx magicui-cli add dot-pattern```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="dot-pattern" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples### Linear Gradientdiff --git a/content/docs/components/fade-text.mdx b/content/docs/components/fade-text.mdxindex bdb0b966..f584a6b5 100644--- a/content/docs/components/fade-text.mdx+++ b/content/docs/components/fade-text.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="fade-text-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/fade-text.tsx+```bash+npx magicui-cli add fade-text```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="fade-text" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/flip-text.mdx b/content/docs/components/flip-text.mdxindex c6066cd7..8dba6a41 100644--- a/content/docs/components/flip-text.mdx+++ b/content/docs/components/flip-text.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="flip-text-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/flip-text.tsx+```bash+npx magicui-cli add flip-text```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="flip-text" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/gauge-circle.mdx b/content/docs/components/gauge-circle.mdxindex 78025be5..b36fdfff 100644--- a/content/docs/components/gauge-circle.mdx+++ b/content/docs/components/gauge-circle.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="gauge-circle-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/gauge-circle.tsx+```bash+npx magicui-cli add gauge-circle```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="gauge-circle" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/globe.mdx b/content/docs/components/globe.mdxindex 83700630..c058ddf5 100644--- a/content/docs/components/globe.mdx+++ b/content/docs/components/globe.mdx@@ -14,24 +14,44 @@ video: https://cdn.magicui.design/globe.mp4<ComponentPreview name="globe-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">```bash-npm install -D cobe react-spring+npx magicui-cli add globe```-```text-components/magicui/globe.tsx+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Install the following dependencies:</Step>++```bash+npm install cobe react-spring```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="globe" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### Globediff --git a/content/docs/components/gradual-spacing.mdx b/content/docs/components/gradual-spacing.mdxindex 7b80ca1c..16ff12ce 100644--- a/content/docs/components/gradual-spacing.mdx+++ b/content/docs/components/gradual-spacing.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="gradual-spacing-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/gradual-spacing.tsx+```bash+npx magicui-cli add gradual-spacing```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="gradual-spacing" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/grid-pattern.mdx b/content/docs/components/grid-pattern.mdxindex 089b9cbc..f34e90bc 100644--- a/content/docs/components/grid-pattern.mdx+++ b/content/docs/components/grid-pattern.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/grid-pattern.mp4<ComponentPreview name="grid-pattern-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/grid-pattern.tsx+```bash+npx magicui-cli add grid-pattern```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="grid-pattern" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples### Linear Gradientdiff --git a/content/docs/components/hero-video.mdx b/content/docs/components/hero-video.mdxindex 8e7e8c76..95bdede5 100644--- a/content/docs/components/hero-video.mdx+++ b/content/docs/components/hero-video.mdx@@ -18,16 +18,6 @@ video: https://cdn.magicui.design/hero-video.mp4Copy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-```textcomponents/magicui/hero-video.tsx```diff --git a/content/docs/components/icon-cloud.mdx b/content/docs/components/icon-cloud.mdxindex 1efd0887..25ae7671 100644--- a/content/docs/components/icon-cloud.mdx+++ b/content/docs/components/icon-cloud.mdx@@ -8,24 +8,44 @@ published: true<ComponentPreview name="icon-cloud-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">```bash-npm i react-icon-cloud+npx magicui-cli add icon-cloud```-```text-components/magicui/icon-cloud.tsx+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Install the following dependencies:</Step>++```bash+npm install react-icon-cloud next-themes```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="icon-cloud" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## ⚠️ Warning> Avoid using the IconCloud component in parent components where the component interacts with hooks or undergoes frequent state changes. Such interactions may lead to unexpected behavior, such as continuous spinning.diff --git a/content/docs/components/letter-pullup.mdx b/content/docs/components/letter-pullup.mdxindex 1abd6c73..726088d0 100644--- a/content/docs/components/letter-pullup.mdx+++ b/content/docs/components/letter-pullup.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="letter-pullup-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/letter-pullup.tsx+```bash+npx magicui-cli add letter-pullup```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="letter-pullup" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/linear-gradient.mdx b/content/docs/components/linear-gradient.mdxindex 8c487454..48b9ffa1 100644--- a/content/docs/components/linear-gradient.mdx+++ b/content/docs/components/linear-gradient.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/linear-gradient.mp4<ComponentPreview name="linear-gradient-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/linear-gradient.tsx+```bash+npx magicui-cli add linear-gradient```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="linear-gradient" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### Linear Gradientdiff --git a/content/docs/components/magic-card.mdx b/content/docs/components/magic-card.mdxindex 7e4a18ec..4a74d0f1 100644--- a/content/docs/components/magic-card.mdx+++ b/content/docs/components/magic-card.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/magic-card.mp4<ComponentPreview name="magic-card-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/magic-card.tsx+```bash+npx magicui-cli add magic-card```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="magic-card" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Examples### Radial Gradient borderdiff --git a/content/docs/components/marquee.mdx b/content/docs/components/marquee.mdxindex 3f3832d1..39483a54 100644--- a/content/docs/components/marquee.mdx+++ b/content/docs/components/marquee.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/marquee.mp4<ComponentPreview name="marquee-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add marquee+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-18}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -39,14 +55,54 @@ module.exports = {};```-```text-components/magicui/marquee.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="marquee" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-18}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ marquee: "marquee var(--duration) linear infinite",+ "marquee-vertical": "marquee-vertical var(--duration) linear infinite",+ },+ keyframes: {+ marquee: {+ from: { transform: "translateX(0)" },+ to: { transform: "translateX(calc(-100% - var(--gap)))" },+ },+ "marquee-vertical": {+ from: { transform: "translateY(0)" },+ to: { transform: "translateY(calc(-100% - var(--gap)))" },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Examples### Verticaldiff --git a/content/docs/components/meteors.mdx b/content/docs/components/meteors.mdxindex f0c34450..e4c67c19 100644--- a/content/docs/components/meteors.mdx+++ b/content/docs/components/meteors.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/meteors.mp4<ComponentPreview name="meteors-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add meteors+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -38,14 +54,53 @@ module.exports = {};```-```text-components/magicui/meteors.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="meteors" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ meteor: "meteor 5s linear infinite",+ },+ keyframes: {+ meteor: {+ "0%": { transform: "rotate(215deg) translateX(0)", opacity: 1 },+ "70%": { opacity: 1 },+ "100%": {+ transform: "rotate(215deg) translateX(-500px)",+ opacity: 0,+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props### Meteorsdiff --git a/content/docs/components/neon-gradient-card.mdx b/content/docs/components/neon-gradient-card.mdxindex d5d27df0..06a0d302 100644--- a/content/docs/components/neon-gradient-card.mdx+++ b/content/docs/components/neon-gradient-card.mdx@@ -8,14 +8,30 @@ published: true<ComponentPreview name="neon-gradient-card-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add neon-gradient-card+```-Copy and paste the following code into your project.+<Step>Update `tailwind.config.js`</Step>-```js-// tailwind.config.js+Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -34,14 +50,50 @@ module.exports = {};```-```text-components/magicui/neon-gradient-card.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="neon-gradient-card" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ backgroundPositionSpin:+ "background-position-spin 3000ms infinite alternate",+ },+ keyframes: {+ "background-position-spin": {+ "0%": { backgroundPosition: "top center" },+ "100%": { backgroundPosition: "bottom center" },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/number-ticker.mdx b/content/docs/components/number-ticker.mdxindex f179c6aa..88ec28d3 100644--- a/content/docs/components/number-ticker.mdx+++ b/content/docs/components/number-ticker.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/number-ticker.mp4<ComponentPreview name="number-ticker-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/number-ticker.tsx+```bash+npx magicui-cli add number-ticker```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="number-ticker" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/orbiting-circles.mdx b/content/docs/components/orbiting-circles.mdxindex a677df80..baf8e7a6 100644--- a/content/docs/components/orbiting-circles.mdx+++ b/content/docs/components/orbiting-circles.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/orbiting-circles.mp4<ComponentPreview name="orbiting-circles-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add orbiting-circles+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-19}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -40,14 +56,55 @@ module.exports = {};```-```text-components/magicui/orbiting-circles.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="orbiting-circles" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-19}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ orbit: "orbit calc(var(--duration)*1s) linear infinite",+ },+ keyframes: {+ orbit: {+ "0%": {+ transform:+ "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)",+ },+ "100%": {+ transform:+ "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/particles.mdx b/content/docs/components/particles.mdxindex adc1f1b5..b5792e01 100644--- a/content/docs/components/particles.mdx+++ b/content/docs/components/particles.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="particles-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/particles.tsx+```bash+npx magicui-cli add particles```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="particles" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/radial-gradient.mdx b/content/docs/components/radial-gradient.mdxindex 9afa0755..9cbcf06d 100644--- a/content/docs/components/radial-gradient.mdx+++ b/content/docs/components/radial-gradient.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/radial-gradient.mp4<ComponentPreview name="radial-gradient-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/radial-gradient.tsx+```bash+npx magicui-cli add radial-gradient```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="radial-gradient" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### Radial Gradientdiff --git a/content/docs/components/retro-grid.mdx b/content/docs/components/retro-grid.mdxindex da6e39c0..943d89a4 100644--- a/content/docs/components/retro-grid.mdx+++ b/content/docs/components/retro-grid.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/retro-grid.mp4<ComponentPreview name="retro-grid-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add retro-grid+```-Copy and paste the following code into your project.+<Step>Update `tailwind.config.js`</Step>-```js-// tailwind.config.js+Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-13}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -34,14 +50,49 @@ module.exports = {};```-```text-components/magicui/retro-grid.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="retro-grid" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-13}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ grid: "grid 15s linear infinite",+ },+ keyframes: {+ grid: {+ "0%": { transform: "translateY(-50%)" },+ "100%": { transform: "translateY(0)" },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/ripple.mdx b/content/docs/components/ripple.mdxindex d9f7b97b..8f475e80 100644--- a/content/docs/components/ripple.mdx+++ b/content/docs/components/ripple.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/ripple.mp4<ComponentPreview name="ripple-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add ripple+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -38,10 +54,49 @@ module.exports = {};```-```text-components/magicui/ripple.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="ripple" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ ripple: "ripple 3400ms ease infinite",+ },+ keyframes: {+ ripple: {+ "0%, 100%": {+ transform: "translate(-50%, -50%) scale(1)",+ },+ "50%": {+ transform: "translate(-50%, -50%) scale(0.9)",+ },+ },+ },+ },+ },+};+```+</Steps>++</TabsContent>++</Tabs>diff --git a/content/docs/components/scroll-based-velocity.mdx b/content/docs/components/scroll-based-velocity.mdxindex 8132e843..04b757d1 100644--- a/content/docs/components/scroll-based-velocity.mdx+++ b/content/docs/components/scroll-based-velocity.mdx@@ -8,24 +8,44 @@ published: true<ComponentPreview name="scroll-based-velocity-demo" />-<Steps>+## Installation++<Tabs defaultValue="cli">-### Installation+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">```bash-pnpm i @motionone/utils+npx magicui-cli add scroll-based-velocity```-Copy and paste the following code into your project.+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Install the following dependencies:</Step>-```text-components/magicui/scroll-based-velocity.tsx+```bash+npm install framer-motion```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="scroll-based-velocity" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/separate-away.mdx b/content/docs/components/separate-away.mdxindex 01859524..e995796e 100644--- a/content/docs/components/separate-away.mdx+++ b/content/docs/components/separate-away.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="separate-away-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/separate-away.tsx+```bash+npx magicui-cli add separate-away```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="separate-away" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/shimmer-button.mdx b/content/docs/components/shimmer-button.mdxindex a9c02fcf..ee13cbe5 100644--- a/content/docs/components/shimmer-button.mdx+++ b/content/docs/components/shimmer-button.mdx@@ -9,14 +9,30 @@ video: https://cdn.magicui.design/shimmer-button.mp4<ComponentPreview name="shimmer-button-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>-Copy and paste the following code into your project.+```bash+npx magicui-cli add shimmer-button+```-```js-// tailwind.config.js+<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-29}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -50,14 +66,65 @@ module.exports = {};```-```text-components/magicui/shimmer-button.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="shimmer-button" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-29}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ animation: {+ "spin-around": "spin-around calc(var(--speed) * 2) infinite linear",+ slide: "slide var(--speed) ease-in-out infinite alternate",+ },+ keyframes: {+ "spin-around": {+ "0%": {+ transform: "translateZ(0) rotate(0)",+ },+ "15%, 35%": {+ transform: "translateZ(0) rotate(90deg)",+ },+ "65%, 85%": {+ transform: "translateZ(0) rotate(270deg)",+ },+ "100%": {+ transform: "translateZ(0) rotate(360deg)",+ },+ },+ slide: {+ to: {+ transform: "translate(calc(100cqw - 100%), 0)",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Props| Prop Name | Type | Description | Default Value |diff --git a/content/docs/components/shine-border.mdx b/content/docs/components/shine-border.mdxindex 3721d2e6..ddc39317 100644--- a/content/docs/components/shine-border.mdx+++ b/content/docs/components/shine-border.mdx@@ -8,14 +8,30 @@ published: true<ComponentPreview name="shine-border-demo" />+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">+<Steps>-### Installation+<Step>Run the following command:</Step>++```bash+npx magicui-cli add shine-border+```++<Step>Update `tailwind.config.js`</Step>-Copy and paste the following code into your project.+Add the following animations to your `tailwind.config.js` file:-```js-// tailwind.config.js+```js title="tailwind.config.js" {5-17}+/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {@@ -37,14 +53,53 @@ module.exports = {};```-```text-components/magicui/shine-border.tsx-```+</Steps>++</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step><ComponentSource name="shine-border" />+<Step>Update the import paths to match your project setup.</Step>++<Step>Update `tailwind.config.js`</Step>++Add the following animations to your `tailwind.config.js` file:++```js title="tailwind.config.js" {5-14}+/** @type {import('tailwindcss').Config} */+module.exports = {+ theme: {+ extend: {+ keyframes: {+ "shine-pulse": {+ "0%": {+ "background-position": "0% 0%",+ },+ "50%": {+ "background-position": "100% 100%",+ },+ to: {+ "background-position": "0% 0%",+ },+ },+ },+ },+ },+};+```+</Steps>+</TabsContent>++</Tabs>+## Examples### Silverdiff --git a/content/docs/components/shiny-button.mdx b/content/docs/components/shiny-button.mdxindex c6ea98d5..a9b45b14 100644--- a/content/docs/components/shiny-button.mdx+++ b/content/docs/components/shiny-button.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="shiny-button-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/shiny-button.tsx+```bash+npx magicui-cli add shiny-button```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="shiny-button" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/sparkles-text.mdx b/content/docs/components/sparkles-text.mdxindex ddd54f55..57176b6a 100644--- a/content/docs/components/sparkles-text.mdx+++ b/content/docs/components/sparkles-text.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="sparkles-text-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/sparkles-text.tsx+```bash+npx magicui-cli add sparkles-text```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="sparkles-text" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/text-reveal.mdx b/content/docs/components/text-reveal.mdxindex b981fa05..15125448 100644--- a/content/docs/components/text-reveal.mdx+++ b/content/docs/components/text-reveal.mdx@@ -9,20 +9,38 @@ video: https://cdn.magicui.design/text-reveal.mp4<ComponentPreview name="text-reveal-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/text-reveal.tsx+```bash+npx magicui-cli add text-reveal```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="text-reveal" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/typing-animation.mdx b/content/docs/components/typing-animation.mdxindex c8048836..e2a874ac 100644--- a/content/docs/components/typing-animation.mdx+++ b/content/docs/components/typing-animation.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="typing-animation-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/typing-animation.tsx+```bash+npx magicui-cli add typing-animation```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="typing-animation" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/wavy-dot-pattern.mdx b/content/docs/components/wavy-dot-pattern.mdxindex 5cf1a932..9a85f721 100644--- a/content/docs/components/wavy-dot-pattern.mdx+++ b/content/docs/components/wavy-dot-pattern.mdx@@ -8,24 +8,44 @@ published: true<ComponentPreview name="wavy-dot-pattern-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">```bash-npm i react-anime+npx magicui-cli add wavy-dot-pattern```-```text-components/magicui/wavy-dot-pattern.tsx+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Install the following dependencies:</Step>++```bash+npm install react-anime```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="wavy-dot-pattern" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props### Dot Patterndiff --git a/content/docs/components/wavy-text.mdx b/content/docs/components/wavy-text.mdxindex c11a97b8..e53fd078 100644--- a/content/docs/components/wavy-text.mdx+++ b/content/docs/components/wavy-text.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="wavy-text-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/wavy-text.tsx+```bash+npx magicui-cli add wavy-text```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="wavy-text" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/word-fade-in.mdx b/content/docs/components/word-fade-in.mdxindex 1b9cd394..cc953156 100644--- a/content/docs/components/word-fade-in.mdx+++ b/content/docs/components/word-fade-in.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="word-fade-in-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/word-fade-in.tsx+```bash+npx magicui-cli add word-fade-in```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="word-fade-in" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/word-pull-up.mdx b/content/docs/components/word-pull-up.mdxindex 8829ce71..e15f97f3 100644--- a/content/docs/components/word-pull-up.mdx+++ b/content/docs/components/word-pull-up.mdx@@ -8,20 +8,38 @@ published: true<ComponentPreview name="word-pull-up-demo" />-<Steps>+## Installation-### Installation+<Tabs defaultValue="cli">-Copy and paste the following code into your project.+<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">-```text-components/magicui/word-pull-up.tsx+```bash+npx magicui-cli add word-pull-up```+</TabsContent>++<TabsContent value="manual">++<Steps>++<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="word-pull-up" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/content/docs/components/word-rotate.mdx b/content/docs/components/word-rotate.mdxindex 9469b15a..69b05618 100644--- a/content/docs/components/word-rotate.mdx+++ b/content/docs/components/word-rotate.mdx@@ -8,20 +8,44 @@ published: true<ComponentPreview name="word-rotate-demo" />-<Steps>+## Installation++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>+<TabsContent value="cli">++```bash+npx magicui-cli add word-rotate+```++</TabsContent>-### Installation+<TabsContent value="manual">-Copy and paste the following code into your project.+<Steps>++<Step>Install the following dependencies:</Step>-```text-components/magicui/word-rotate.tsx+```bash+npm install framer-motion```+<Step>Copy and paste the following code into your project.</Step>+<ComponentSource name="word-rotate" />+<Step>Update the import paths to match your project setup.</Step>+</Steps>+</TabsContent>++</Tabs>+## Props| Prop | Type | Description | Default |diff --git a/contentlayer.config.ts b/contentlayer.config.tsindex 6e60b580..bb7438b9 100644--- a/contentlayer.config.ts+++ b/contentlayer.config.ts@@ -151,9 +151,7 @@ export default makeSource({[rehypePrettyCode,{- theme: "material-theme-palenight",- // light: "material-theme-lighter",- // },+ theme: "github-dark",onVisitLine(node: any) {// Prevent lines from collapsing in `display: grid` mode, and allow empty// lines to be copy/pasted@@ -161,7 +159,6 @@ export default makeSource({node.children = [{ type: "text", value: " " }];}},- // keepBackground: true,onVisitHighlightedLine(node: any) {node.properties.className.push("line--highlighted");},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e9fcc1e8..256fc96d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -4337,8 +4337,8 @@ packages:engines: {node: '>=6'}hasBin: true- resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==}+ resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==}resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}@@ -11540,7 +11540,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}optionalDependencies:@@ -13609,7 +13609,7 @@ snapshots:dependencies:ansi-sequence-parser: 1.1.1- jsonc-parser: 3.2.1+ jsonc-parser: 3.3.1vscode-oniguruma: 1.7.0vscode-textmate: 8.0.0diff --git a/registry/components/example/separate-away-demo.tsx b/registry/components/example/separate-away-demo.tsxindex 6a82a4ed..3a979518 100644--- a/registry/components/example/separate-away-demo.tsx+++ b/registry/components/example/separate-away-demo.tsx@@ -1,4 +1,4 @@-import { SeparateAway } from "../magicui/separate-away";+import { SeparateAway } from "@/components/magicui/separate-away";export default async function SeparateAwayDemo() {return (diff --git a/styles/mdx.css b/styles/mdx.cssindex 52b25e96..21308bd9 100644--- a/styles/mdx.css+++ b/styles/mdx.css@@ -15,54 +15,35 @@}[data-rehype-pretty-code-fragment] {- @apply relative;+ @apply relative text-white;}[data-rehype-pretty-code-fragment] code {@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;counter-reset: line;box-decoration-break: clone;- line-height: 1.7;}[data-rehype-pretty-code-fragment] .line {- @apply inline-block min-h-[1rem] w-full px-4 py-0.5;+ @apply px-4 min-h-[1rem] py-0.5 w-full inline-block;}[data-rehype-pretty-code-fragment] [data-line-numbers] .line {@apply px-2;}-[data-rehype-pretty-code-fragment]- [data-line-numbers]- > .line--highlighted::before {- @apply text-slate-600;-}-[data-rehype-pretty-code-fragment] [data-line-numbers] > .line::before {- @apply text-xs text-slate-400;+ @apply text-zinc-50/40 text-xs;counter-increment: line;content: counter(line);display: inline-block;- width: 1rem;- margin-right: 2rem;+ width: 1.8rem;+ margin-right: 1.4rem;text-align: right;}-[data-rehype-pretty-code-fragment]- code[data-line-numbers-max-digits="2"]- > .line::before {- width: 2rem;-}--[data-rehype-pretty-code-fragment]- code[data-line-numbers-max-digits="3"]- > .line::before {- width: 3rem;-}-[data-rehype-pretty-code-fragment] .line--highlighted {- @apply bg-slate-700/50;+ @apply bg-zinc-700/50;}[data-rehype-pretty-code-fragment] .line-highlighted span {@@ -70,21 +51,25 @@}[data-rehype-pretty-code-fragment] .word--highlighted {- @apply rounded-md border-slate-700/70 bg-slate-700/50 p-1;+ @apply rounded-md bg-zinc-700/50 border-zinc-700/70 p-1;}.dark [data-rehype-pretty-code-fragment] .word--highlighted {- @apply bg-slate-900;+ @apply bg-zinc-900;}[data-rehype-pretty-code-title] {- @apply mt-2 px-4 pt-6 text-sm font-medium;+ @apply mt-2 pt-6 px-4 text-sm font-medium text-foreground;}[data-rehype-pretty-code-title] + pre {@apply mt-2;}-article > .steps:first-child > h3:first-child {+.mdx > .steps:first-child > h3:first-child {@apply mt-0;}++.steps > h3 {+ @apply mt-8 mb-4 text-base font-semibold;+}\ No newline at end of file