add
npx tambo add <componentname>
Adds a component hooked up to Tambo to your app.
This command will install the component file directly into the /components/tambo
directory of your app so you can easily customize the behavior and styles. It will also install the components' dependencies and update your styles.
Available Components:
message-thread-full
- Full-screen chat interface with history and typing indicatorsmessage-thread-panel
- Split-view chat with integrated workspacemessage-thread-collapsible
- Collapsible chat for sidebarscontrol-bar
- Spotlight-style command paletteform
- AI-powered form componentsgraph
- Interactive graph visualizationcanvas-space
- Canvas workspace for visual AI interactionsinput-fields
- Smart input field components
Examples:
Automatic Configuration
The add
command automatically configures your CSS and Tailwind setup based on your project's Tailwind CSS version:
- Detects your Tailwind version (v3 or v4) automatically
- Updates your
globals.css
with required CSS variables - Updates your
tailwind.config.ts
(v3 only) with basic configuration - Preserves your existing styles and configuration
Safe Setup
The CLI preserves your existing configuration and only adds what's needed for Tambo components to work. Your custom styles and colors won't be overridden.
For detailed information about what gets configured or for manual setup, see:
CSS & Tailwind Configuration
Complete guide to CSS variables and Tailwind configuration changes