Installation

Add any Cloudlet component with the shadcn CLI, or install an engine from npm.

On this page

Every component is a shadcn registry item. Engines are also npm packages, for projects that do not use shadcn/ui. The commands below are written for npm; the switch above each one shows it for pnpm, yarn or bun.

With the shadcn CLI

Add an item by its name under the @cloudlet namespace:

Terminal
npx shadcn@latest add @cloudlet/color-picker
ItemComponentWhat it adds
toasterToasterA wrapper and a theme bridge for @cloudlet/toast, which it adds as a dependency
color-pickerColor pickerThe picker's source, nothing in package.json
color-paletteColor paletteThe palette's source, and the color-picker item it needs
onboardingOnboardingThe tour's source and its agent adapter, nothing in package.json
onboarding-islandOnboarding in the IslandThe tour in the Toaster's Island, the onboarding item it needs, and @cloudlet/toast as a dependency
notification-centerNotification centerA panel wrapper and a bell for @cloudlet/toast/center, and @cloudlet/toast as a dependency

If your CLI does not resolve the @cloudlet namespace, give it the item's address instead: https://cloudlet.dev/r/<item>.json.

Terminal
npx shadcn@latest add https://cloudlet.dev/r/color-picker.json

With npm

An engine installs as a package. The Toaster is @cloudlet/toast, and the notification center comes with it at @cloudlet/toast/center:

Terminal
npm install @cloudlet/toast

The package has React peers and one CSS file to import; Toaster installation has the requirements and where the import goes.

Simple components have no package: add them with the shadcn CLI.

Next steps