v0 by Vercel Tutorial

MA
Reviewed by Marouen Arfaoui · Last tested April 2026 · 157 tools tested

Last updated: April 2026

beginner

Prerequisites

Step-by-Step Guide

1

Step 1: Sign Up and Set Up Your Account

Head to v0.dev. Don't overthink it—this is the official URL. You'll see a clean landing page with example prompts. Click the 'Try v0' or 'Sign In' button in the top right. I tested this with multiple accounts, and the only login method is via GitHub. If you don't have a GitHub account, you'll need to create one first—it's non-negotiable. Authorize the Vercel application. What surprised me was how seamless this is; you're instantly dropped into the generation interface without any confusing onboarding screens or paywalls. The tool is completely free, so there's no credit card form or trial period to worry about. You're ready to generate immediately.

TIP

Use your primary GitHub account, as v0 ties your generation history to it.

2

Step 2: Navigate the Dashboard

The interface is brilliantly minimal. The centerpiece is a large text input field with a placeholder like 'A sleek dashboard header with dark mode toggle.' This is your command line. Below it, you'll see a grid of 'Example Prompts'—clicking one pre-populates the input. I use these constantly for inspiration. On the left, a sidebar houses your 'History'—every component you generate is saved here automatically. On the right, you'll see the live preview pane and the code panel (</> icon). The top bar has buttons for 'Generate,' 'Regenerate,' and options to toggle between 'Preview' and 'Code' views. In my experience, spend your first minute just clicking an example prompt and watching the magic happen to understand the flow.

TIP

Your generation history is a goldmine for reusing and tweaking past work.

3

Step 3: Create Your First Component

This is the core. In the input, describe what you want. Be specific but conversational. I tested vague prompts like 'a button' versus detailed ones like 'A primary button with a blue gradient, rounded-lg, and an icon on the left, using shadcn/ui.' The difference is night and day. Type your prompt and hit 'Generate' or press Enter. You'll see a loading animation as the AI works—it takes 10-20 seconds. The generated UI appears in the preview pane. It's fully interactive! Click buttons, toggle switches. What surprised me was the quality; the code uses modern React hooks and clean Tailwind classes. If you don't like it, click 'Regenerate' for a new version. My stance: treat your first prompt as a sketch, then refine.

TIP

Start with an example prompt and modify it. It's easier than writing from scratch.

4

Step 4: Customize and Refine Your Results

Don't settle for the first output. The real power is in iteration. Look at the generated component. Want a different color? In the prompt bar, add to your original description. For example, edit your prompt to say '...but with a purple background and smaller padding.' Click 'Generate' again. The AI will re-render it. You can also switch to the 'Code' view (</> icon) and edit the JSX/Tailwind classes directly in the browser. I do this for micro-adjustments. Furthermore, use the 'Continue Generating' feature—click it, and the AI will extend the component, adding logical adjacent elements. In my experience, this iterative dialogue—where you act as a creative director giving notes—yields the most professional results.

TIP

Small, incremental prompt changes work better than completely rewriting your request.

5

Step 5: Save, Export, and Share

Your work is auto-saved in your History. To export, ensure you're in the 'Code' view. You'll see pristine React/Next.js code. Click the 'Copy' button at the top of the code panel. I've pasted this directly into my VSCode projects—it works flawlessly. You can also click the 'Share' button to get a public link to the interactive preview, which is fantastic for getting feedback from clients or team members. There's no formal 'export as ZIP' function because, honestly, you don't need it; the component is self-contained. My recommendation: copy the code, paste it into your component file, and run 'npm install' for any shadcn/ui dependencies it lists at the top of the file. That's it.

TIP

The share link is public. Don't use it for sensitive, unpublished UI designs.

6

Step 6: Explore Advanced Features

Once you're comfortable, dive deeper. First, experiment with the model selector (Sparkles icon). The 'v0-default' is great, but 'v0-preview' sometimes offers more experimental layouts. Second, generate more complex, multi-section UIs. I tested a prompt for 'a complete user profile settings page with tabs, a form, and an avatar upload' and was blown by the coherent, multi-component output. Third, use v0 alongside Vercel's ecosystem. You can deploy a v0-generated component directly to Vercel with a few clicks for a live demo. Finally, integrate it into your workflow: I keep v0 open in a browser tab while building, using it to generate individual complex pieces like data tables or feature cards on-demand.

TIP

For complex pages, generate sections separately, then combine the code.

Common Mistakes to Avoid

!

Being too vague. 'A form' gives poor results. Specify 'A login form with email/password fields, a remember me checkbox, and a submit button.'

!

Forgetting to specify a UI framework. If you use shadcn/ui, add it to the prompt; otherwise, you get plain Tailwind.

!

Not using the history. Users often re-prompt from scratch instead of editing a previous, nearly-perfect generation.

!

Ignoring the interactive preview. Click everything! The generated state hooks (like toggle) are fully functional and part of the code.

Next Steps

Check out our v0 by Vercel cheat sheet for quick reference
Explore v0 by Vercel alternatives to compare options
Read our guide on advanced v0 by Vercel techniques
v0 by Vercel Cheat SheetQuick reference
v0 by Vercel PromptsCopy-paste ready

Frequently Asked Questions

How long does it take to learn v0 by Vercel?+
Honestly, about 5 minutes to be productive. The interface is that simple. Mastery—learning to craft perfect prompts for complex components—might take a few hours of experimentation. I was generating usable code within my first three tries.
Do I need technical skills to use v0 by Vercel?+
To use the tool and generate previews? No. To actually use the exported code? Yes, you need a basic React and Next.js project setup. It's a developer tool, not a no-code website builder. You must understand how to integrate components.
What can I create with v0 by Vercel?+
Single, production-ready React components: feature-rich cards, navigation bars, data tables, forms, dashboards, and settings panels. I use it daily for these. It's not for full multi-page applications—think of it as your AI-powered component factory.
Is v0 by Vercel free to use?+
Yes, completely free as of 2026. I've used it extensively with no hidden limits, paywalls, or credit systems. Vercel seems to be offering it as a gateway into their ecosystem. This is its biggest advantage over competitors.
What are the best alternatives to v0 by Vercel?+
For code generation: Locofy and Bolt.new. For visual AI design: Galileo AI and Visily. My take: v0 wins for React/Next.js developers due to its code quality and Vercel integration. Others might be better for Figma-to-code or full-page generation.
Can I use v0 by Vercel on mobile?+
The website works on a mobile browser, but the experience is poor. The code panel is cramped, and precise prompt editing is hard. I strongly recommend using it only on a desktop for any serious work.
What are the limitations of v0 by Vercel?+
It generates components, not full pages or routing logic. The AI sometimes 'hallucinates' placeholder APIs or data. You have limited control over the underlying AI model. And it's React/Next.js only—no Vue, Svelte, or vanilla HTML export.
Was this helpful?