Add Buildpad Components
Install Buildpad UI components using the CLI. Components are copied as source code to your project (Copy & Own model).
Prerequisites Check (MANDATORY)
Before running any CLI commands, verify required tools:
node --version && pnpm --version && npx --version
| Tool |
Min Version |
Install Guide |
| Node.js |
v24 LTS |
https://nodejs.org/en/download — macOS: brew install node@24; Linux: fnm install 24; Windows: installer or winget install OpenJS.NodeJS.LTS |
| pnpm |
v10+ |
https://pnpm.io/installation — corepack enable && corepack prepare pnpm@latest --activate |
| npx |
(bundled) |
Comes with Node.js — reinstall Node if missing |
If any tool is missing, install it before proceeding. See create-project prerequisites for detailed OS-specific instructions.
CRITICAL: Never Create Components Manually
❌ NEVER CREATE MANUALLY:
├── components/ui/*.tsx # ALL UI components — from CLI only
├── lib/buildpad/ # ENTIRE folder — from CLI only
│ ├── services/ # api-request, items, fields, collections
│ ├── hooks/ # useRelationM2M, useFiles, etc.
│ ├── types/ # Field, Collection, File types
│ ├── utils/ # utilities
│ └── ui-form/ # VForm, FormField components
└── buildpad.json # Created by CLI init
Installation Commands
# Via npx (no local clone needed)
npx @buildpad/cli@latest add --all --with-api --cwd /path/to/project
# Individual components
npx @buildpad/cli@latest add input select-dropdown datetime toggle --cwd /path/to/project
Component Categories
| Category |
Components |
| Input |
input, textarea, input-code, input-block-editor, tags, map, map-with-real-map |
| Selection |
select-dropdown, select-radio, select-multiple-checkbox, select-multiple-checkbox-tree, select-multiple-dropdown, autocomplete-api, collection-item-dropdown, select-icon |
| Boolean |
boolean, toggle |
| DateTime |
datetime |
| Media |
file, file-image, files, upload, color |
| Rich-text |
rich-text-html, rich-text-markdown |
| Relations |
list-m2m, list-m2o, list-o2m, list-m2a |
| Layout |
divider, notice, group-detail, slider |
| Collections |
vform, collection-form, vtable, collection-list, filter-panel, content-navigation, content-layout, save-options |
| Workflow |
workflow-button |
| Modules |
files-routes (+ file-manager), form-builder forms-routes — full multi-screen experiences, scaffolded whole (see below) |
Opt-in Modules (whole experiences)
Beyond individual components, two ready-made modules install their own page shells, components, and hooks in one command. Use the dedicated skills — do not compose these by hand:
# Files library — /files (FileManager) + /files/[id] (FileDetail)
npx @buildpad/cli@latest add files-routes --cwd /path/to/project # → /add-files
# Dynamic Form Builder — /forms author + fill (FormBuilder + DynamicForm)
npx @buildpad/cli@latest add form-builder forms-routes --cwd /path/to/project # → /create-form-builder
Both also need the DaaS proxy routes: npx @buildpad/cli@latest add api-routes --cwd /path/to/project. See add-files and create-form-builder.
The ui.buildpad.ai docs use the shorthand buildpad add <targets> (global install); npx @buildpad/cli@latest add <targets> is the equivalent no-install form.
Post-Install Validation
# 1. Check installation status
npx @buildpad/cli@latest status --cwd /path/to/project
# 2. Fix any untransformed @buildpad/* imports
grep -r "from '@buildpad/" components/ lib/ 2>/dev/null
# 3. Run validation
npx @buildpad/cli@latest validate --cwd /path/to/project
# 4. Auto-fix common issues
npx @buildpad/cli@latest fix --cwd /path/to/project
# 5. Build to verify
cd /path/to/project && pnpm build
Key Dependencies
If pnpm install doesn't resolve everything after CLI add:
pnpm add clsx tailwind-merge @mantine/core @mantine/hooks @mantine/dates @mantine/dropzone @mantine/tiptap @tabler/icons-react dayjs @supabase/ssr @supabase/supabase-js
References
1---2name: add-buildpad3description: Add Buildpad UI components to a DaaS project via CLI. Installs Copy & Own components from the registry including input, selection, boolean, datetime, media, rich-text, relations, layout, collection, and workflow components. Use when the user says add-buildpad, install components, or needs Buildpad UI.4---56# Add Buildpad Components78Install Buildpad UI components using the CLI. Components are copied as source code to your project (Copy & Own model).910## Prerequisites Check (MANDATORY)1112Before running any CLI commands, verify required tools:1314```bash15node --version && pnpm --version && npx --version16```1718| Tool | Min Version | Install Guide |19| ------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |20| Node.js | v24 LTS | https://nodejs.org/en/download — macOS: `brew install node@24`; Linux: `fnm install 24`; Windows: installer or `winget install OpenJS.NodeJS.LTS` |21| pnpm | v10+ | https://pnpm.io/installation — `corepack enable && corepack prepare pnpm@latest --activate` |22| npx | (bundled) | Comes with Node.js — reinstall Node if missing |2324**If any tool is missing, install it before proceeding.** See [create-project prerequisites](../create-project/references/prerequisites.instructions.md) for detailed OS-specific instructions.2526## CRITICAL: Never Create Components Manually2728```29❌ NEVER CREATE MANUALLY:30├── components/ui/*.tsx # ALL UI components — from CLI only31├── lib/buildpad/ # ENTIRE folder — from CLI only32│ ├── services/ # api-request, items, fields, collections33│ ├── hooks/ # useRelationM2M, useFiles, etc.34│ ├── types/ # Field, Collection, File types35│ ├── utils/ # utilities36│ └── ui-form/ # VForm, FormField components37└── buildpad.json # Created by CLI init38```3940## Installation Commands4142```bash43# Via npx (no local clone needed)44npx @buildpad/cli@latest add --all --with-api --cwd /path/to/project4546# Individual components47npx @buildpad/cli@latest add input select-dropdown datetime toggle --cwd /path/to/project48```4950## Component Categories5152| Category | Components |53| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |54| **Input** | input, textarea, input-code, input-block-editor, tags, map, map-with-real-map |55| **Selection** | select-dropdown, select-radio, select-multiple-checkbox, select-multiple-checkbox-tree, select-multiple-dropdown, autocomplete-api, collection-item-dropdown, select-icon |56| **Boolean** | boolean, toggle |57| **DateTime** | datetime |58| **Media** | file, file-image, files, upload, color |59| **Rich-text** | rich-text-html, rich-text-markdown |60| **Relations** | list-m2m, list-m2o, list-o2m, list-m2a |61| **Layout** | divider, notice, group-detail, slider |62| **Collections** | vform, collection-form, vtable, collection-list, filter-panel, content-navigation, content-layout, save-options |63| **Workflow** | workflow-button |64| **Modules** | `files-routes` (+ file-manager), `form-builder` `forms-routes` — full multi-screen experiences, scaffolded whole (see below) |6566## Opt-in Modules (whole experiences)6768Beyond individual components, two ready-made modules install their own page shells, components, and hooks in one command. Use the dedicated skills — do not compose these by hand:6970```bash71# Files library — /files (FileManager) + /files/[id] (FileDetail)72npx @buildpad/cli@latest add files-routes --cwd /path/to/project # → /add-files7374# Dynamic Form Builder — /forms author + fill (FormBuilder + DynamicForm)75npx @buildpad/cli@latest add form-builder forms-routes --cwd /path/to/project # → /create-form-builder76```7778Both also need the DaaS proxy routes: `npx @buildpad/cli@latest add api-routes --cwd /path/to/project`. See [add-files](../add-files/SKILL.md) and [create-form-builder](../create-form-builder/SKILL.md).7980> The `ui.buildpad.ai` docs use the shorthand `buildpad add <targets>` (global install); `npx @buildpad/cli@latest add <targets>` is the equivalent no-install form.8182## Post-Install Validation8384```bash85# 1. Check installation status86npx @buildpad/cli@latest status --cwd /path/to/project8788# 2. Fix any untransformed @buildpad/* imports89grep -r "from '@buildpad/" components/ lib/ 2>/dev/null9091# 3. Run validation92npx @buildpad/cli@latest validate --cwd /path/to/project9394# 4. Auto-fix common issues95npx @buildpad/cli@latest fix --cwd /path/to/project9697# 5. Build to verify98cd /path/to/project && pnpm build99```100101## Key Dependencies102103If `pnpm install` doesn't resolve everything after CLI add:104105```bash106pnpm add clsx tailwind-merge @mantine/core @mantine/hooks @mantine/dates @mantine/dropzone @mantine/tiptap @tabler/icons-react dayjs @supabase/ssr @supabase/supabase-js107```108109## References110111- [Buildpad component guide](references/buildpad.instructions.md)