Skip to content

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

778 B
Raw Blame
import {
  registryIndexSchema,
  type Registry,
  type RegistryItem,
} from "shadcn/schema"

import { examples } from "@/registry/registry-examples"
import { lib } from "@/registry/registry-lib"
import { ui } from "@/registry/registry-ui"

const DEPRECATED_ITEMS = [""]

const DEFAULT: RegistryItem = {
  name: "index",
  type: "registry:style",
  dependencies: ["class-variance-authority", "lucide-react"],
  devDependencies: ["tw-animate-css"],
  registryDependencies: ["utils"],
  cssVars: {},
  files: [],
}

export const registry = {
  name: "magicui",
  homepage: "https://magicui.design",
  items: registryIndexSchema.parse(
    [DEFAULT, ...ui, ...examples, ...lib].filter((item) => {
      return !DEPRECATED_ITEMS.includes(item.name)
    })
  ),
} satisfies Registry