Enhancement: Magic UI CLI, Superset of shadcn-ui #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
magicui-cli
A CLI for adding magic ui components to your project. Superset of shadcn-ui.
Enhancement: #49 ✅
Usage
Use the
init
command to initialize dependencies for a new project.The
init
command installs dependencies (framer-motion
), adds thecn
util, configurestailwind.config.js
, and CSS variables for the project.shadcn-ui project
If your project is already using the
shadcn-ui
, don't worry! You can still use magicui.Just add these two lines to your
components,json
file and installframer-motion
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.Example
You can also use the optional
--all
flag to install all components:You can also use the
--exmaple
flag to select and install example & demo you saw on webside:You can also run the command without any arguments to view a list of all available components:
shadcn-ui
You can also use the same CLI for selecting & installing shadcn-ui components:
Magic UI Premium Components
If user has the "env", just login the CLI and enjoy the premium components
Use
--pro
tag to list premium components from pro websideCLI also supports the premium project templates. It will download the private repo as zip file
TODO