New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

magicui-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicui-cli

Add magic ui components to your apps. Shadcn-ui based config

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

magicui

A CLI for adding magic ui components to your project. Superset of shadcn-ui.

 ##   ##                      ##                  ##   ##   ####
 ### ###                                          ##   ##    ##
 #######   ####     ### ##   ###      ####        ##   ##    ##
 #######      ##   ##  ##     ##     ##  ##       ##   ##    ##
 ## # ##   #####   ##  ##     ##     ##           ##   ##    ##
 ##   ##  ##  ##    #####     ##     ##  ##       ##   ##    ##
 ##   ##   #####       ##    ####     ####         #####    ####
                   #####

Usage

Use the init command to initialize dependencies for a new project.

The init command installs dependencies (framer-motion), adds the cn util, configures tailwind.config.js, and CSS variables for the project.

npx magicui-cli init

shadcn-ui project

If your project is already using the shadcn-ui, don't worry! You can still use magicui.

npx shadcn-ui init

Just add these two lines to your components.json file:

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "app/globals.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
+   "ui": "@/components/ui",
+   "magicui": "@/components/magicui"
  }
}

add

Use the add command to add components to your project.

The add command adds a component to your project and installs all required dependencies.

npx magicui-cli add [component]

Example

npx magicui-cli add bento-grid

You can also use the optional --all flag to install all components:

npx magicui-cli add --all

You can also use the --exmaple flag to select and install example & demo you saw on webside:

npx magicui-cli add --example

You can also run the command without any arguments to view a list of all available components:

npx magicui-cli add

shadcn-ui

You can also use the same CLI for selecting & installing shadcn-ui components:

npx magicui-cli add --shadcn button
npx magicui-cli add --shadcn --all

Documentation

Visit https://magicui.design/docs/installation to view the documentation.

License

Licensed under the MIT license.

Keywords

components

FAQs

Package last updated on 08 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts