What do you want to draft?

Look around for free. Drafts run on Builder + AI, from $15 a month See plans

Compare and pick, not settle

One prompt, several takes side by side: keep the one you like, then refine it
21st AIExample run
A pricing section with three plans
3 takes drafted, pick the one you like

Describe your own component…

CodeSketch
Take 2 of 3Use take 2
Pricing
  • Several takes per run

    Every generation produces multiple takes on your prompt. See each one live, then iterate on any of them

  • Code or Sketch

    A full React + shadcn component in a live sandbox, or a fast HTML draft to take to your own agent, from the models you pick

  • Remix the library

    Start from any community component and generate your own version of it

  • Edit or iterate

    Edit supported values for free, or add notes and iterate on any take

  • Copy code & prompt

    Take the component's code, or the prompt behind it, in one click

Wherever you code

Same account, same credits
A pricing table, 3 tiersCreate
Take 1
Take 2
Take 3

Take 2 kept, ready to copy into your project

On the web

Browse, draft, iterate, take it to your code

Claude Code

> draft 3 pricing tables

21st · generate "pricing table"

· 3 takes ready, previews open

· you picked take 2

✔ components/ui/pricing.tsx

In your agent

MCP for Cursor, Claude, VS Code, Codex, Windsurf: it drafts takes and searches the library without leaving the chat

terminal — 21st

$ 21st search "pricing"

· most saved first

$ 21st add efferd/pricing

✔ Installing dependencies

✔ components/ui/pricing.tsx

In your terminal

The 21st CLI: search, install and generate

21st generate "a pricing table" --variants 3

Builder + AI, from

$15

a month, billed yearly

See plans
  • 500, 1,000 or 2,000 AI credits a month
  • One balance on the web, in your agent and in the terminal
  • Top up +100 credits for $5, they roll over
  • Design Bug Bot and premium models included

Questions about 21st AI

It draws inspiration from the 21st library and drafts UI tailored to your request

Draft in a separate sandbox, then give the code or prompt to your agent to integrate into your project

Yes. Sketch drafts are editable HTML. Code takes have React source files. You can iterate here or continue in your agent

You do, fully. No licensing restrictions: use, modify and distribute them however you want

Generation needs a paid plan with AI: Builder + AI with 500, 1,000 or 2,000 credits a month, from $15 billed yearly. The balance is shared on the web, over MCP and in the CLI; the monthly allowance resets, and top-ups of 100 credits for $5 roll over. In the terminal: 21st generate

Not in the library? Draft it

Describe it once, compare the takes, keep the one you like