@abhivarde/syncui
v2.2.1
Published
Add Sync UI components and blocks to your project with a single command, like shadcn/ui.
Downloads
238
Maintainers
Readme
syncui
A CLI for setting up and adding components, blocks, and charts to your project.
Install
You can use syncui directly without installing anything.
npx @abhivarde/syncui@latest initOr install it globally once, then use the shorter syncui command everywhere.
npm install -g @abhivarde/syncuiThe rest of this guide assumes you've installed it globally.
init
Use the init command to set up Sync UI in your project.
It detects your framework, creates a components.json config, sets up an import alias if one doesn't exist, and installs the base dependencies.
syncui initadd
Use the add command to add a component, block, or chart to your project.
The add command writes the code directly into your project and installs any missing dependencies automatically. Nothing is added as a package dependency, you own the code.
syncui add [name]Example
syncui add cardRunning add without a variant uses the default style. To add a specific variant, use [name]/[variant].
syncui add card/lensThis works the same way for blocks and charts.
syncui add hero
syncui add hero/left
syncui add bar
syncui add line/dashedlist
Use the list command to view every component, block, and chart available.
syncui listOptions
Use --path to choose a custom output directory, --overwrite to replace a file that already exists, and --skip-install to skip automatic dependency installation.
syncui add buttons --path src/ui --overwrite
syncui add buttons --skip-installPackage managers
If you'd rather not install globally, the same commands work with any package manager.
npx @abhivarde/syncui@latest init
npx @abhivarde/syncui@latest add card
pnpm dlx @abhivarde/syncui@latest add card
yarn dlx @abhivarde/syncui@latest add card
bunx --bun @abhivarde/syncui@latest add cardDocumentation
Visit https://syncui.design to browse the full component library and preview every variant.
License
Licensed under the MIT license.
