Text Prompting

Use text prompting to create initial UIs and answer technical questions with natural language.

You can describe what you want to build in natural language, and v0 will generate a working web app based on your input.

Basic Examples

Start with simple, descriptive prompts. For example:

  • "A dashboard with a login page and user profile view"
  • "A landing page for a mobile app with a hero section, features grid, and pricing table"
  • "An internal tool to manage customer support tickets"
  • "A product feedback form that writes to a database"

AI prompt enhancement

After writing a simple prompt, v0 may offer to enhance it with more details. Select the enhancement option to get a comprehensive specification that improves your results. This feature is particularly useful when you're not sure about all the technical details.

For example:

  • Original: "Make a todo app."
  • Enhanced: "Create a modern todo application with add/edit/delete tasks, completion tracking, filtering, localStorage persistence, and responsive design."

Development Workflow

Simple Projects (Direct Implementation)

For straightforward applications with clear requirements, start directly with implementation. This approach works well for single-purpose tools, landing pages, or simple CRUD applications.

Build a task management app using Next.js 14 with App Router, TypeScript, and Tailwind CSS
Create a contact form with validation and email integration

Complex projects (planning first)

For multi-feature applications, enterprise tools, or systems with multiple user roles, start with planning. This helps ensure you don't miss critical requirements and creates a roadmap for development.

1. Requirements gathering

Define what you're building and who will use it:

Create a PRD for a restaurant reservation system
Generate user personas for a fitness tracking app

2. Implementation

Build the core functionality based on your requirements:

"Build the MVP based on the PRD, starting with core features."

3. Iteration

Add features and refinements based on your initial implementation:

"Add search functionality and pagination to the task list."

"Implement real-time updates using WebSockets."

Best Practices

Be Specific

The more specific your prompt, the better the results. Include details about functionality, design preferences, and technical requirements.

Instead of: "Make a website"

Try:

Create a portfolio website for a freelance designer with hero section, projects showcase, contact form, and responsive design

Break down complex tasks

Large, complex applications are better built incrementally. This approach reduces errors, allows for testing at each stage, and makes debugging easier.

Too Complex:

Create a full e-commerce platform with authentication, catalog, cart, payments, orders, admin dashboard, and analytics

Better Approach:

Start with a product catalogue page showing products in a grid layout

Then follow up:

Add a shopping cart with localStorage persistence

Include technical details

Specify your preferred technologies, frameworks, and integrations. This helps v0 generate code that matches your existing stack or preferences.

Build a real-time chat app using: - Next.js 14 with App Router - Socket.io for messaging - MongoDB for storage - NextAuth.js for authentication

Specify UI/UX preferences

Include design preferences to get results that match your vision. Consider factors like color schemes, layout preferences, and user experience requirements.

Design a minimal, dark-mode interface with mobile-first responsive layout

Include error handling

Robust applications need proper error handling. Specify how you want to handle common failure scenarios to ensure a good user experience.

Add comprehensive error handling for network failures, invalid input, and empty states
Implement loading states and user-friendly error messages

Advanced techniques

Ask v0 to plan

When you're unsure how to approach a complex project, let v0 help you break it down. This is especially useful for projects with multiple stakeholders or complex business logic.

Break down the development of a social media dashboard into smaller steps

Component-first development

Build your application piece by piece, starting with individual components. This approach gives you more control over each part and makes debugging easier.

Create a header component with navigation and logo

Then: "Add a hero section below the header"

Progressive enhancement

Start with core functionality and gradually add features. This approach ensures your application works at every stage and helps you prioritize features based on user feedback.

  1. Core Features: "Create a basic todo list with add/delete"
  2. Data Persistence: "Add localStorage to save todos"
  3. User Experience: "Add completion checkboxes and filtering"

Prompt templates

Use these templates as starting points for common development patterns. Customize them based on your specific requirements.

CRUD operations

Create a resource management interface with list view, add/edit forms, delete confirmation, and search/pagination

Authentication

Implement [auth method] with login/register forms, password reset, session management, and protected routes

Dashboards

Build a dashboard widget showing [metric] with current value, trend indicator, comparison data, and interactive chart

Complete example workflow

Here's how to build a customer support ticket system from start to finish. This example shows the progression from planning to a fully functional application:

1. Planning

Create a PRD for a customer support ticket system with agent dashboard and customer portal

2. Core implementation

Build the ticket creation form with priority levels, categories, and file uploads

3. Agent features

Add the agent dashboard with ticket list, status updates, and response interface

4. Enhancements

Implement real-time notifications and email alerts for ticket updates

Technical questions

v0 is trained on the latest Vercel ecosystem documentation and can answer questions about:

  • Next.js - React framework for production
  • Svelte - Cybernetically enhanced web apps
  • Turborepo - High-performance build system
  • AI SDK - AI-powered applications
  • Vercel - Cloud platform for frontend developers

Example queries

Use v0 to get specific answers about implementation details, best practices, and troubleshooting:

  • "How do I implement server-side rendering in Next.js 14?"
  • "What's the best way to handle authentication in SvelteKit?"
  • "How can I optimize my Turborepo build performance?"

Next steps

Once you've generated your initial application: