Skip to content

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

feat: svelte install docs (#130)

gurshan2659e1942e09
diff --git a/content/docs/installation/react.mdx b/content/docs/installation/react.mdx
index 9ee1f9da..6288d624 100644
--- a/content/docs/installation/react.mdx
+++ b/content/docs/installation/react.mdx
@@ -8,7 +8,7 @@ published: true
### Information
-Magic UI currently only support **React**. This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
+This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
### Prerequisites
@@ -29,9 +29,11 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
```
+
### Install components
That's it! Now you can go to any [component](/components) page and follow the instructions there
You only need to copy + paste the components you need! No bloat or third-party dependencies.
-</Steps>
\ No newline at end of file
+
+</Steps>
diff --git a/content/docs/installation/svelte.mdx b/content/docs/installation/svelte.mdx
index 018f37c0..71fb3518 100644
--- a/content/docs/installation/svelte.mdx
+++ b/content/docs/installation/svelte.mdx
@@ -4,4 +4,37 @@ description: Install and configure Magic UI for Svelte
published: true
---
-<p>Documentation for Svelte is coming soon.</p>
\ No newline at end of file
+<Steps>
+
+### Information
+
+This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.
+
+### Prerequisites
+
+These are the main dependencies you will need to get started.
+
+```bash
+npx @svelte-add/tailwindcss@latest # add tailwindcss
+npm install tailwind-variants clsx tailwind-merge svelte-inview
+```
+
+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));
+}
+```
+
+### Install components
+
+That's it! Now you can go to any [component](/components) page and follow the instructions there
+
+You only need to copy + paste the components you need! No bloat or third-party dependencies.
+
+</Steps>