Get started using Draft UI faster than ever by installing components right from the command line
Install Sly CLI
Run the following code to add Draft UI to your project.
sly will show you a list of components available to download.
@sly-cli/sly let's you configure some specific settings about how you want to install components from the CLI. Assuming you've followed the initial Draft UI installation instructions, this is what your
sly.json should look like.
Of course, if you've made your own customizations, you should update your
sly.json to match those changes.
sly also allows you to manipulate how you install your components via transformers.
In order to use transformers, you'll need to install
sly into your project:
For example, if you're using a different path alias for your directories, overwrite the default values automatically.
For additional information on tranformers, go to the