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 particles (#125)

Dillion Verma5936f0ca8c16
diff --git a/config/docs.ts b/config/docs.ts
index 4ea54427..8d67ef6a 100644
--- a/config/docs.ts
+++ b/config/docs.ts
@@ -165,6 +165,12 @@ export const docsConfig: DocsConfig = {
items: [],
label: "New",
},
+ {
+ title: "Particles",
+ href: `/docs/components/particles`,
+ items: [],
+ label: "New",
+ },
],
},
{
@@ -302,7 +308,7 @@ export const docsConfig: DocsConfig = {
title: "Animated Subscribe Button",
href: `/docs/components/animated-subscribe-button`,
items: [],
- label: "New"
+ label: "New",
},
],
},
diff --git a/content/docs/components/particles.mdx b/content/docs/components/particles.mdx
index 7af567ee..adc1f1b5 100644
--- a/content/docs/components/particles.mdx
+++ b/content/docs/components/particles.mdx
@@ -1,40 +1,25 @@
---
title: Particles
-date: 2024-02-01
+date: 2024-06-04
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.
author: dillionverma
-published: false
-video: https://cdn.magicui.design/particles.mp4
+published: true
---
<ComponentPreview name="particles-demo" />
<Steps>
-<Step>
-
-## Installation
+### Installation
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));
-}
-```
-
```text
components/magicui/particles.tsx
```
<ComponentSource name="particles" />
-</Step>
-
</Steps>
## Props