Skip to main content
Magic Chat is the AI-powered coding assistant built into 21st. Describe what you want in plain language, and Magic Chat generates production-ready React components using community components and best practices.

How It Works

  1. Start a project — Open Magic Chat and describe what you want to build
  2. AI generates code — Magic Chat creates a sandboxed React project with a live preview
  3. Iterate in chat — Refine the result with follow-up messages, add context, attach images
  4. Copy the code — Take the generated code into your project or continue editing with AI

What Makes It Different

  • Community-powered — Magic Chat can use any component from the 21st Community as building blocks
  • Live preview — See your component rendered in real time as the AI works
  • Multiple variants — Generate several variations at once and pick the best one
  • Site cloning — Provide a URL and Magic Chat will recreate the design (Pro plans)
  • Context-aware — Add images, community components, and reference designs to guide the AI

Key Features

FeatureDescription
AI ChatDescribe changes in natural language; the agent edits files, runs commands, and searches for components
Live PreviewReal-time iframe preview with viewport controls (desktop, tablet, mobile)
Multiple VariantsGenerate several approaches at once and compare side by side
Community ContextReference any component from the 21st library as a building block
Image UploadsAttach screenshots or mockups to guide the AI
Site CloneRecreate any website’s design from a URL (Pro plans)
Copy PromptExport a prompt for use in Cursor, Claude Code, or other AI tools
Version HistoryRestore any previous checkpoint during your session
Keyboard ShortcutsFull shortcut support for power users

Get Started

Quick Start

Create your first project in minutes.

Pricing & Plans

Free tier, Pro plans, and how credits work.

Manage Subscription

Change your plan or cancel your subscription.

Keyboard Shortcuts

All shortcuts at a glance.