knot-ui
v0.1.6
Published
CLI to add Knot UI animated components to your project.
Maintainers
Readme
knot-ui
CLI to add Knot UI animated components to your project.
Usage
Initialize project
bunx knot-ui initAdd a component
bunx knot-ui add button
bunx knot-ui add tabsAdd multiple components at once
bunx knot-ui add button tabsInteractive mode (pick from a list)
bunx knot-ui addList all available components
bunx knot-ui listOptions
-d, --dir <path> Target directory for components (default: src/components/ui)
-o, --overwrite Overwrite existing files
-y, --yes Skip confirmation promptsWhat it does
- Fetches the component source code from the Knot UI registry
- Writes the
.tsxfile into yoursrc/components/ui/directory - Auto-installs any npm dependencies (e.g.
motion,next-themes) - Recursively resolves registry dependencies (e.g. adding
tabs-demoalso addstabs)
Package Manager Detection
The CLI automatically detects your package manager by checking for lock files:
bun.lock/bun.lockb→bun addpnpm-lock.yaml→pnpm addyarn.lock→yarn add- Otherwise →
npm install
