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:
npx shadcn@latest add @cloudlet/color-picker| Item | Component | What it adds |
|---|---|---|
toaster | Toaster | A wrapper and a theme bridge for @cloudlet/toast, which it adds as a dependency |
color-picker | Color picker | The picker's source, nothing in package.json |
color-palette | Color palette | The palette's source, and the color-picker item it needs |
onboarding | Onboarding | The tour's source and its agent adapter, nothing in package.json |
onboarding-island | Onboarding in the Island | The tour in the Toaster's Island, the onboarding item it needs, and @cloudlet/toast as a dependency |
notification-center | Notification center | A 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.
npx shadcn@latest add https://cloudlet.dev/r/color-picker.jsonWith npm
An engine installs as a package. The Toaster is @cloudlet/toast, and the notification center comes with it at @cloudlet/toast/center:
npm install @cloudlet/toastThe 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
- Toaster: the stack, the Island and the controller.
- Color picker: the swatch and the panel.
- Color palette: a row of up to four pickers.
- Onboarding: a product tour over your app.
- Notification center: a panel for your app's own notifications, and its bell.
- Agents: connect the components to an AI agent in your app.