ui add
dinvolt ui add
Install official shadcn/ui components or packaged Dinvolt blocks. The selected area determines the theme and file paths.
Add public components:
npx dinvolt ui add button dialog --target publicbunx dinvolt ui add button dialog --target publicpnpm dlx dinvolt ui add button dialog --target publicyarn dlx dinvolt ui add button dialog --target publicAdd an admin block:
npx dinvolt ui add @dinvolt/admin-panel --target adminbunx dinvolt ui add @dinvolt/admin-panel --target adminpnpm dlx dinvolt ui add @dinvolt/admin-panel --target adminyarn dlx dinvolt ui add @dinvolt/admin-panel --target adminReplace an existing official component:
npx dinvolt ui add input --target admin --overwritebunx dinvolt ui add input --target admin --overwritepnpm dlx dinvolt ui add input --target admin --overwriteyarn dlx dinvolt ui add input --target admin --overwrite| Option | Purpose |
|---|---|
--target <area> |
public or admin. Defaults to public in public-only projects; otherwise admin. |
-o, --overwrite |
Replace existing official components in the selected area. |
Provide at least one component. Public-only projects support only the public target. Admin-only projects support only the admin target, with components in src/components/ui. Arbitrary registry URLs and third-party namespaces are unsupported.
Customized Dinvolt blocks need manual review, including with --overwrite. See the UI registry for blocks and usage examples.