npx npix@latest init
Note: Run this from the root of your project. This will overwrite your global.css
and tailwind.config.ts
Use the add
command to install components
You can pass in the following parameters:
[components]: Space separated list of components to add
-a OR --all: Add all components
-o OR --overwrite: Overwrite existing files
-p OR --path: Path of where to install components
For example, the following will install the Button and Toast components under the ui folder from the current working directory:
npx npix@latest add -p ./ui Button Toast