Guides
Rapid prototyping with Grok Build
Prototyping with Grok Build is a conversation. Describe what you want, watch it build, see the result in your browser, iterate.
Plan Mode explores the idea and figures out what to build. The browser tool shows you what you're building as it develops. Auto-run closes the loop: Grok Build runs the code, sees the result, and fixes issues without waiting for you.
Plan mode for scoping prototypes
Start with Plan Mode (Shift+Tab, then select Plan) when you have an idea but haven't figured out exactly what to build. Grok Build explores the problem space, asks clarifying questions, and creates a structured plan before writing code.
See the agent's response
timing.ts middleware (already logs to console)Plan Mode is useful when:
- You're not sure what the prototype should do
- You want to compare different approaches before committing
- The idea spans multiple components and you need to scope it
Review the plan, adjust priorities, then execute. For simple prototypes, skip straight to building.
See the agent's response
Building with the browser tool
The browser tool lets Grok Build see what it's building. Instead of writing code and hoping it looks right, Grok Build renders the UI, sees the result, and adjusts.
See the agent's response
Thought for 2s
CreatedDashboard.tsx+45
export function Dashboard() {
const metrics = [
{ label: 'Revenue', value: '$124,500', change: '+12%' },
{ label: 'Orders', value: '1,429', change: '+8%' },
{ label: 'Customers', value: '892', change: '+23%' },
];
return (
<div className="p-6 space-y-6">
{/* ... */}
</div>
);
}Thought for 1s
EditedDashboard.tsx+3-2
<div className="p-6 space-y-6">
<div className="p-8 space-y-8 max-w-7xl mx-auto">
<div className="grid gap-4">
<div className="grid gap-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">The browser tool captures accessibility snapshots, not only screenshots. Grok Build understands the structure of the page: what's clickable, what's editable, how elements relate. It can interact with the prototype, click through flows, and catch issues you'd miss looking at code.
See the agent's response
CreatedCart.tsx+62
export function Cart() {
const [items, setItems] = useState(sampleItems);
// ...Thought for 1s
CreatedShipping.tsx+48
export function ShippingForm() {
return (
<form onSubmit={handleSubmit}>
// ...Thought for 1s
EditedShipping.tsx+8-2
const handleSubmit = (e) => {
const handleSubmit = (e) => {
e.preventDefault();
if (!validateFields()) return;See the agent's response
Thought for 1s
EditedSettingsForm.tsx+5-3
<div className="space-y-2">
<div className="space-y-6">
<label className="...">
<button className="mt-2">
<button className="mt-8">Demo prototypes for stakeholders
Grok Build can build demo-quality prototypes that show a concept without backend infrastructure.
See the agent's response
Thought for 2s
CreatedAnalyticsDashboard.tsx+120
const sampleCustomers = [
{ name: 'Acme Corp', revenue: 124500, growth: 12 },
{ name: 'Globex Inc', revenue: 98200, growth: 8 },
// ...CreatedRevenueChart.tsx+45
export function RevenueChart({ data }) {
return <LineChart data={data} ... />See the agent's response
CreatedLogin.tsx+35
export function Login() {
const handleSubmit = () => navigate('/dashboard');
// ...CreatedDashboard.tsx+55
const reports = [
{ id: 1, name: 'Q4 Sales Report', date: '2024-01-15' },
// ...See the agent's response
EditedmockData.ts+85-12
export const companies = ['Company A', 'Company B'];
export const companies = [
{ name: 'Meridian Technologies', industry: 'SaaS', founded: 2019 },
{ name: 'Northstar Logistics', industry: 'Supply Chain', founded: 2015 },
{ name: 'Cascade Analytics', industry: 'Data', founded: 2021 },
// ... 12 more companiesPrototyping for non-developers
PMs, designers, and analysts use Grok Build to build working prototypes without writing code themselves. The prompts focus on describing outcomes rather than implementation.
See the agent's response
Thought for 1s
CreatedSalesChart.tsx+75
export function SalesChart({ data }) {
const [dateRange, setDateRange] = useState({ start: null, end: null });
const filtered = filterByDateRange(data, dateRange);
// ...With MCP integrations, Grok Build can connect directly to Figma to read your designs. Browse the Marketplace to set up the Figma integration.
See the agent's response
Thought for 2s
CreatedLanding.tsx+145
export function Landing() {
return (
<div className="bg-slate-950 text-white">
<Hero />
<Features />
<Pricing />When something looks wrong, describe what's wrong rather than how to fix it:
See the agent's response
EditedHeader.tsx+2-2
<header className="h-24 text-2xl">
<header className="h-16 text-lg">EditedSidebar.tsx+12-3
const [collapsed, setCollapsed] = useState(isMobile);
useEffect(() => setCollapsed(isMobile), [isMobile]);Editedtailwind.config.js+4-4
primary: '#3b82f6',
primary: '#6366f1',Getting started
-
Use Plan Mode to scope. When you're not sure what to build, Plan Mode explores the problem and creates a roadmap before writing code.
-
Enable the browser tool. Grok Build can iterate on visual details without you describing every adjustment.
-
Enable Auto-run. Let Grok Build run code, see results, and fix issues in a continuous loop.
-
Describe outcomes, not implementation. "Build a dashboard showing X" works better than specifying every component.
-
Iterate in conversation. Describe what to change: "Make this bigger," "Add a filter for date," "The flow should start here instead."
Last updated: November 23, 2026