Skip to content
Dinvolt
Esc
↑↓navigate↵open⌘Jpreview
On this page

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 public
bunx dinvolt ui add button dialog --target public
pnpm dlx dinvolt ui add button dialog --target public
yarn dlx dinvolt ui add button dialog --target public

Add an admin block:

npx dinvolt ui add @dinvolt/admin-panel --target admin
bunx dinvolt ui add @dinvolt/admin-panel --target admin
pnpm dlx dinvolt ui add @dinvolt/admin-panel --target admin
yarn dlx dinvolt ui add @dinvolt/admin-panel --target admin

Replace an existing official component:

npx dinvolt ui add input --target admin --overwrite
bunx dinvolt ui add input --target admin --overwrite
pnpm dlx dinvolt ui add input --target admin --overwrite
yarn 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.

Was this page helpful?