Skip to content

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

refactor: remove deprecated components

Dillion Verma2eac2a20b7bd
diff --git a/config/docs.ts b/config/docs.ts
index 8750360f..fe989890 100644
--- a/config/docs.ts
+++ b/config/docs.ts
@@ -209,6 +209,12 @@ export const docsConfig: DocsConfig = {
items: [],
label: "",
},
+ {
+ title: "Cool Mode",
+ href: `/docs/components/cool-mode`,
+ items: [],
+ label: "",
+ },
],
},
@@ -249,24 +255,12 @@ export const docsConfig: DocsConfig = {
items: [],
label: "",
},
- {
- title: "Wavy Text",
- href: `/docs/components/wavy-text`,
- items: [],
- label: "",
- },
{
title: "Blur In",
href: `/docs/components/blur-in`,
items: [],
label: "",
},
- {
- title: "Separate Away",
- href: `/docs/components/separate-away`,
- items: [],
- label: "",
- },
{
title: "Scroll Based Velocity",
href: `/docs/components/scroll-based-velocity`,
@@ -321,12 +315,6 @@ export const docsConfig: DocsConfig = {
items: [],
label: "",
},
- {
- title: "Cool Mode",
- href: `/docs/components/cool-mode`,
- items: [],
- label: "",
- },
],
},
{
@@ -380,22 +368,6 @@ export const docsConfig: DocsConfig = {
href: `/docs/components/grid-pattern`,
items: [],
},
- {
- title: "Linear Gradient",
- href: `/docs/components/linear-gradient`,
- items: [],
- },
- {
- title: "Radial Gradient",
- href: `/docs/components/radial-gradient`,
- items: [],
- },
- {
- title: "Wavy Dot Pattern",
- href: `/docs/components/wavy-dot-pattern`,
- items: [],
- label: "",
- },
],
},
],
diff --git a/content/docs/components/linear-gradient.mdx b/content/docs/components/linear-gradient.mdx
deleted file mode 100644
index 48b9ffa1..00000000
--- a/content/docs/components/linear-gradient.mdx
+++ /dev/null
@@ -1,56 +0,0 @@
----
-title: Linear Gradient
-date: 2023-07-12
-description: A linear gradient that can be used as a background for a component.
-author: dillionverma
-published: true
-video: https://cdn.magicui.design/linear-gradient.mp4
----
-
-<ComponentPreview name="linear-gradient-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```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 Gradient
-
-| Prop | Type | Description | Default |
-| --------------- | ------ | --------------------------------------------------------------------------------------- | --------------------- |
-| from | string | The starting color of the gradient | #00000000 |
-| to | string | The ending color of the gradient | rgba(120,119,198,0.3) |
-| width | string | The width of the gradient | 100% |
-| height | string | The height of the gradient | 100% |
-| transitionPoint | string | The point at which the gradient transitions from the starting color to the ending color | 50% |
-| direction | string | The direction of the gradient | bottom |
-| className | string | The class name of the component | "" |
diff --git a/content/docs/components/radial-gradient.mdx b/content/docs/components/radial-gradient.mdx
deleted file mode 100644
index 9cbcf06d..00000000
--- a/content/docs/components/radial-gradient.mdx
+++ /dev/null
@@ -1,55 +0,0 @@
----
-title: Radial Gradient
-date: 2023-07-12
-description: A circular gradient that can be used as a background for a component.
-author: dillionverma
-published: true
-video: https://cdn.magicui.design/radial-gradient.mp4
----
-
-<ComponentPreview name="radial-gradient-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```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 Gradient
-
-| Prop | Type | Description | Default |
-| --------- | ------ | --------------------------- | --------------------- |
-| type | string | Shape of the gradient | circle |
-| from | string | Color of the gradient start | rgba(120,119,198,0.3) |
-| to | string | Color of the gradient end | hsla(0, 0%, 0%, 0) |
-| size | number | Size of the gradient | 300 |
-| origin | string | Origin of the gradient | center |
-| className | string | Class name of the gradient | "" |
diff --git a/content/docs/components/separate-away.mdx b/content/docs/components/separate-away.mdx
deleted file mode 100644
index e995796e..00000000
--- a/content/docs/components/separate-away.mdx
+++ /dev/null
@@ -1,52 +0,0 @@
----
-title: Separate Away
-date: 2024-05-22
-description: Vertical separation of words
-author: whyismynamerudy
-published: true
----
-
-<ComponentPreview name="separate-away-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```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 |
-| -------------- | ------ | --------------------------------------------- | ------- |
-| className | string | The class name to be applied to the component | |
-| upperText | string | The words to be separated upwards | " |
-| lowerText | string | The words to be separated downwards | " |
-| duration | number | Duration of the separation animation | 1.5 |
-| hiddenOpacity | number | Opacity of the text when it's hidden | 0 |
-| visibleOpacity | number | Opacity of the text when it's visible | 1 |
diff --git a/content/docs/components/wavy-dot-pattern.mdx b/content/docs/components/wavy-dot-pattern.mdx
deleted file mode 100644
index 9a85f721..00000000
--- a/content/docs/components/wavy-dot-pattern.mdx
+++ /dev/null
@@ -1,59 +0,0 @@
----
-title: Wavy Dot Pattern
-date: 2024-05-24
-description: A background dot pattern that ripples when dots are clicked.
-author: tomonarifeehan
-published: true
----
-
-<ComponentPreview name="wavy-dot-pattern-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx magicui-cli add wavy-dot-pattern
-```
-
-</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 Pattern
-
-| Prop | Type | Description | Default |
-| ---------- | ------ | -------------------------- | ------- |
-| className | string | Class name of the dot grid | - |
-| gridWidth | number | Width of the dot grid | 30 |
-| gridHeight | number | Height of the dot grid | 15 |
-| dotWidth | number | Width of the dot | 8 |
-| dotWidth | number | Width of the dot | 8 |
diff --git a/content/docs/components/wavy-text.mdx b/content/docs/components/wavy-text.mdx
deleted file mode 100644
index e53fd078..00000000
--- a/content/docs/components/wavy-text.mdx
+++ /dev/null
@@ -1,51 +0,0 @@
----
-title: Wavy Text
-date: 2024-05-23
-description: An animated text component that staggers text up
-author: DoffuXx
-published: true
----
-
-<ComponentPreview name="wavy-text-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```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 |
-| --------- | ------ | -------------------------------------------------- | ---------------------------------------- |
-| className | string | The class name to be applied to the component | |
-| duration | number | Durations (seconds) for the animation | 0.5 |
-| delay | number | Duration (seconds) for stagger between each letter | 0.02 |
-| words | string | The word to be animated | |
-| variant | object | Custom animation variants for motion component | ` hidden: { y: 10 },visible: { y: -10 }` |
diff --git a/registry/components/example/separate-away-demo.tsx b/registry/components/example/separate-away-demo.tsx
deleted file mode 100644
index 3a979518..00000000
--- a/registry/components/example/separate-away-demo.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { SeparateAway } from "@/components/magicui/separate-away";
-
-export default async function SeparateAwayDemo() {
- return (
- <SeparateAway
- upper_text="Separate"
- lower_text="Away"
- duration={1.5}
- hidden_opacity={0}
- visible_opacity={1}
- className="font-display text-center text-4xl font-bold tracking-[-0.02em] text-black dark:text-white md:text-7xl md:leading-[5rem]"
- />
- );
-}
diff --git a/registry/components/example/wavy-text-demo.tsx b/registry/components/example/wavy-text-demo.tsx
deleted file mode 100644
index 6b3b0f5b..00000000
--- a/registry/components/example/wavy-text-demo.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import WavyText from "@/components/magicui/wavy-text";
-
-export default function WavyTextDemo() {
- return (
- <WavyText
- word="Wavy Text"
- className="text-4xl font-bold text-black dark:text-white"
- />
- );
-}
diff --git a/registry/components/magicui/linear-gradient.tsx b/registry/components/magicui/linear-gradient.tsx
deleted file mode 100644
index 4f33046f..00000000
--- a/registry/components/magicui/linear-gradient.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-import { CSSProperties } from "react";
-
-type Direction =
- | "top"
- | "bottom"
- | "left"
- | "right"
- | "top left"
- | "top right"
- | "bottom left"
- | "bottom right";
-
-interface LinearGradientProps {
- /**
- * The color to transition from
- * @default #00000000
- * @type string
- * */
- from?: string;
-
- /**
- * The color to transition to
- * @default #290A5C
- * @type string
- * */
- to?: string;
-
- /**
- * The width of the gradient
- * @default 100%
- * @type string
- * */
- width?: string;
-
- /**
- * The height of the gradient
- * @default 100%
- * @type string
- * */
- height?: string;
-
- /**
- * The direction of the gradient
- * @default bottom
- * @type string
- * */
- direction?: Direction;
-
- /**
- * The point at which the transition occurs
- * @default 50%
- * @type string
- * */
- transitionPoint?: string;
-
- /**
- * The class name to apply to the gradient
- * @default ""
- * @type string
- * */
- className?: string;
-}
-
-const LinearGradient = ({
- from = "#00000000",
- to = "rgba(120,119,198,0.3)",
- width = "100%",
- height = "100%",
- transitionPoint = "50%",
- direction = "bottom",
- className,
-}: LinearGradientProps) => {
- const styles: CSSProperties = {
- position: "absolute",
- pointerEvents: "none",
- inset: 0,
- width: width,
- height: height,
- background: `linear-gradient(to ${direction}, ${from}, ${transitionPoint}, ${to})`,
- };
- return <div className={className} style={styles} />;
-};
-
-export default LinearGradient;
diff --git a/registry/components/magicui/radial-gradient.tsx b/registry/components/magicui/radial-gradient.tsx
deleted file mode 100644
index 341d04e9..00000000
--- a/registry/components/magicui/radial-gradient.tsx
+++ /dev/null
@@ -1,77 +0,0 @@
-import { CSSProperties } from "react";
-
-type Type = "circle" | "ellipse";
-
-type Origin =
- | "center"
- | "top"
- | "bottom"
- | "left"
- | "right"
- | "top left"
- | "top right"
- | "bottom left"
- | "bottom right";
-
-interface RadialProps {
- /**
- * The type of radial gradient
- * @default circle
- * @type string
- */
- type?: Type;
- /**
- * The color to transition from
- * @default #00000000
- * @type string
- * */
- from?: string;
-
- /**
- * The color to transition to
- * @default #290A5C
- * @type string
- * */
- to?: string;
-
- /**
- * The size of the gradient in pixels
- * @default 300
- * @type number
- * */
- size?: number;
-
- /**
- * The origin of the gradient
- * @default center
- * @type string
- * */
- origin?: Origin;
-
- /**
- * The class name to apply to the gradient
- * @default ""
- * @type string
- * */
- className?: string;
-}
-
-const RadialGradient = ({
- type = "circle",
- from = "rgba(120,119,198,0.3)",
- to = "hsla(0, 0%, 0%, 0)",
- size = 300,
- origin = "center",
- className,
-}: RadialProps) => {
- const styles: CSSProperties = {
- position: "absolute",
- pointerEvents: "none",
- inset: 0,
- backgroundImage: `radial-gradient(${type} ${size}px at ${origin}, ${from}, ${to})`,
- };
-
- return <div className={className} style={styles} />;
-};
-
-export default RadialGradient;
diff --git a/registry/components/magicui/separate-away.tsx b/registry/components/magicui/separate-away.tsx
deleted file mode 100644
index 4a1f3929..00000000
--- a/registry/components/magicui/separate-away.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client";
-
-import { motion } from "framer-motion";
-
-import { cn } from "@/lib/utils";
-
-interface SeparateAwayProps {
- upper_text: string;
- lower_text: string;
- duration?: number;
- hidden_opacity?: number;
- visible_opacity?: number;
- className?: string;
-}
-
-export function SeparateAway({
- upper_text,
- lower_text,
- duration = 1.5,
- hidden_opacity = 0,
- visible_opacity = 1,
- className,
-}: SeparateAwayProps) {
- const separate = {
- hidden: { opacity: hidden_opacity, y: 0 },
- visible: (custom: number) => ({
- opacity: visible_opacity,
- y: custom * 5,
- transition: { duration: duration },
- }),
- };
-
- return (
- <div>
- <motion.h1
- custom={-1}
- variants={separate}
- initial="hidden"
- animate="visible"
- className={cn(className)}
- >
- {upper_text}
- </motion.h1>
- <motion.h1
- custom={1}
- variants={separate}
- initial="hidden"
- animate="visible"
- className={cn(className)}
- >
- {lower_text}
- </motion.h1>
- </div>
- );
-}
diff --git a/registry/components/magicui/wavy-text.tsx b/registry/components/magicui/wavy-text.tsx
deleted file mode 100644
index d7e828bc..00000000
--- a/registry/components/magicui/wavy-text.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-"use client";
-
-import { useMemo } from "react";
-import { AnimatePresence, motion } from "framer-motion";
-
-import { cn } from "@/lib/utils";
-
-interface WavyTextProps {
- word: string;
- className?: string;
- variant?: {
- hidden: { y: number };
- visible: { y: number };
- };
- duration?: number;
- delay?: number;
-}
-const WavyText = ({
- word,
- className,
- variant,
- duration = 0.5,
- delay = 0.05,
-}: WavyTextProps) => {
- const defaultVariants = {
- hidden: { y: 10 },
- visible: { y: -10 },
- };
- const combinedVariants = variant || defaultVariants;
- const characters = useMemo(() => word.split(""), [word]);
- return (
- <div className="flex justify-center space-x-2 overflow-hidden p-3">
- <AnimatePresence>
- {characters.map((char, i) => (
- <motion.h1
- key={i}
- initial="hidden"
- animate="visible"
- exit="hidden"
- variants={combinedVariants}
- transition={{
- yoyo: Infinity,
- duration: duration,
- delay: i * delay,
- }}
- className={cn(
- className,
- "font-display text-center text-4xl font-bold tracking-[-0.15em] md:text-7xl",
- )}
- >
- {char}
- </motion.h1>
- ))}
- </AnimatePresence>
- </div>
- );
-};
-
-export default WavyText;
diff --git a/registry/index.tsx b/registry/index.tsx
index 61f7e32c..7fa1ed90 100644
--- a/registry/index.tsx
+++ b/registry/index.tsx
@@ -163,21 +163,11 @@ const ui: Registry = {
type: "components:magicui",
files: ["registry/components/magicui/typing-animation.tsx"],
},
- "wavy-text": {
- name: "wavy-text",
- type: "components:magicui",
- files: ["registry/components/magicui/wavy-text.tsx"],
- },
"blur-in": {
name: "blur-in",
type: "components:magicui",
files: ["registry/components/magicui/blur-in.tsx"],
},
- "separate-away": {
- name: "separate-away",
- type: "components:magicui",
- files: ["registry/components/magicui/separate-away.tsx"],
- },
"letter-pullup": {
name: "letter-pullup",
type: "components:magicui",
@@ -199,11 +189,6 @@ const ui: Registry = {
dependencies: ["next-themes", "react-icon-cloud"],
files: ["registry/components/magicui/icon-cloud.tsx"],
},
- "wavy-dot-pattern": {
- name: "wavy-dot-pattern",
- type: "components:magicui",
- files: ["registry/components/magicui/wavy-dot-pattern.tsx"],
- },
"gradual-spacing": {
name: "gradual-spacing",
type: "components:magicui",
@@ -293,24 +278,6 @@ const example: Registry = {
() => import("@/registry/components/example/magic-card-gradient"),
),
},
- "linear-gradient-demo": {
- name: "linear-gradient-demo",
- type: "components:example",
- registryDependencies: ["linear-gradient"],
- files: ["registry/components/example/linear-gradient-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/linear-gradient-demo"),
- ),
- },
- "radial-gradient-demo": {
- name: "radial-gradient-demo",
- type: "components:example",
- registryDependencies: ["radial-gradient"],
- files: ["registry/components/example/radial-gradient-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/radial-gradient-demo"),
- ),
- },
"meteors-demo": {
name: "meteors-demo",
type: "components:example",
@@ -696,15 +663,7 @@ const example: Registry = {
() => import("@/registry/components/example/typing-animation-demo"),
),
},
- "wavy-text-demo": {
- name: "wavy-text-demo",
- type: "components:example",
- registryDependencies: ["wavy-text"],
- files: ["registry/components/example/wavy-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/wavy-text-demo"),
- ),
- },
+
"blur-in-demo": {
name: "blur-in-demo",
type: "components:example",
@@ -714,15 +673,7 @@ const example: Registry = {
() => import("@/registry/components/example/blur-in-demo"),
),
},
- "separate-away-demo": {
- name: "separate-away-demo",
- type: "components:example",
- registryDependencies: ["separate-away"],
- files: ["registry/components/example/separate-away-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/components/example/separate-away-demo"),
- ),
- },
+
"scroll-based-velocity-demo": {
name: "scroll-based-velocity-demo",
type: "components:example",