您的协作式 AI 助手,帮助您设计、迭代和扩展全栈 Web 应用程序。
您想创建什么?
Templates Enterprise Pricing iOS Students FAQ 登录 注册 Use your ChatGPT plan in v0 您想创建什么? (function nV({composerId:a,draftKey:b,isMobile:c,isNewChat:d,extractTextFromHtmlValue:e,attachmentChipClassName:f,attachmentChipIconClassName:g,attachmentChipLoadingIconClassName:h,attachmentChipLabelClassName:i,attachmentChipLoadingClassName:j,attachmentChipStyle:k,attachmentChipSpacerClassName:l,attachmentChipSpacerStyle:m,attachmentChipSkillIconSvg:n,attachmentChipRepoIconSvg:o,urlClassName:p,urlFaviconSlotStyle:q}){let r=document.getElementById(a);if(r){r.addEventListener("input",()=>{let a,c,d,e=((a=r.cloneNode(!0)).querySelectorAll("[data-prompt-attachment-chip], [data-prompt-attachment-chip-spacer], [data-prompt-url-favicon-slot]").forEach(a=>a.remove()),(c=Array.from(a.children).filter(a=>a.matches("p,div"))).length>0?B(c.map(a=>a.textContent||"").join("\n")):B(a.textContent||""));r.dataset.promptText=e,!function(a,c){try{let d=localStorage.getItem("v0-local-drafts"),e=d?JSON.parse(d):{},f=e[b]||{},g=Array.isArray(f.context)?f.context.filter(a=>a?.type!=="refinement-element"):[],h=Array.isArray(f.attachedSkills)?f.attachedSkills:[],i=E(f.composerContent).length>0?E(c):h;a.trim()||0!==g.length||0!==i.length?e[b]={text:a||null,composerContent:c,context:g,fileMap:f.fileMap||{},attachedSkills:i,updatedAt:Date.now()}:delete e[b],localStorage.setItem("v0-local-drafts",JSON.stringify(e))}catch(a){console.debug("prompt shell draft save error:",a)}}(e,{type:"doc",content:(d=Array.from(r.children).filter(a=>a.matches("p,div"))).length>0?d.map(a=>H(a.childNodes)):[H(r.childNodes)]})});try{if(d){let a=new URLSearchParams(window.location.search).get("q");if(a)return void J(a)}let a=localStorage.getItem("v0-local-drafts");if(!a)return;let c=JSON.parse(a)[b];if(!c)return;if(c.composerContent){var s;let a,b=function a(b,c){if(!b)return null;if("promptAttachmentChip"===b.type){var d;let a=b.attrs&&b.attrs.id;return"string"==typeof a&&c.has(a)?b:(d=b.attrs)&&z(d.skill)||d&&A(d.repo)||d&&"string"==typeof d.url&&d.url?b:null}if(!Array.isArray(b.content))return b;let e=[];return b.content.forEach(b=>{let d=a(b,c);d&&e.push(d)}),{…b,content:e}}(c.composerContent,(s=c.context,a=new Set,Array.isArray(s)&&s.forEach(b=>{F(b)&&"string"==typeof b.data.id&&a.add(b.data.id)}),a));if(function a(b){return!!b&&("promptAttachmentChip"===b.type||!!Array.isArray(b.content)&&b.content.some(a))}(b))return void K(function a(b,c){if(!b)return"";if("promptAttachmentChip"===b.type)return w(b.attrs||{})+(c?.isLast?` `:"");if("text"===b.type)return t(x(b.text));if("paragraph"===b.type){let c=Array.isArray(b.content)?b.content:[],d=c.findIndex(C),e=function(a){for(let b=a.length-1;b>=0;b-=1)if(C(a[b]))return b;return -1}(c),f=c.map((b,c)=>b&&"text"===b.type?v(x(b.text),c===d,c===e):a(b,{isLast:c===e})).join("");return` ${f}
Start with a template
]*>/gi,"\n").replace(/ ]*>/gi,"\n")).replace(/ /g," ")).replace(/ ]*>/g,"")).replace(/&/g,"&").replace(/</g," ").replace(/"/g,'"').replace(/'/g,"'")).trim()}, attachmentChipClassName: "text-[14px] leading-5 border-v0-gray-300 group relative mx-0.5 inline-flex h-5 cursor-grab items-center overflow-hidden rounded-[6px] border bg-v0-gray-100 pl-0.5 pr-1 align-top font-normal text-v0-gray-1000 transition-colors hover:bg-v0-gray-200 active:cursor-grabbing", attachmentChipIconClassName: "relative mr-1 flex size-4 shrink-0 items-center justify-center overflow-hidden text-[10px] text-v0-gray-900 rounded-[4px] border border-v0-alpha-400 bg-v0-background-200", attachmentChipLoadingIconClassName: "relative mr-1 flex size-4 shrink-0 items-center justify-center overflow-hidden text-[10px] text-v0-gray-900", attachmentChipLabelClassName: "min-w-0 truncate", attachmentChipLoadingClassName: "cursor-text hover:bg-v0-gray-100", attachmentChipStyle: "max-width:200px;min-width:0", attachmentChipSpacerClassName: "inline-block align-top", attachmentChipSpacerStyle: "display:inline-block;width:1px;max-width:1px;overflow:hidden;vertical-align:top", attachmentChipSkillIconSvg: "\u003csvg height=\"10\" width=\"10\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7.15714 0L2.33264 9.40776L1.77252 10.5H3.00001H7.00001C7.13808 10.5 7.25001 10.6119 7.25001 10.75V16H8.84288L13.6674 6.59224L14.2275 5.5H13H9.00001C8.86194 5.5 8.75001 5.38807 8.75001 5.25V0H7.15714ZM7.00001 9H4.22749L7.25001 3.1061V5.25C7.25001 6.2165 8.03351 7 9.00001 7H11.7725L8.75001 12.8939V10.75C8.75001 9.7835 7.96651 9 7.00001 9Z\" fill=\"currentColor\"/>\u003c/svg>", attachmentChipRepoIconSvg: "\u003csvg height=\"10\" width=\"10\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 .13c-4.42 0-8 3.6-8 8.07 0 3.57 2.3 6.58 5.47 7.65.4.08.55-.17.55-.39L6 13.96c-2.23.49-2.7-.95-2.7-.95-.35-.94-.88-1.18-.88-1.18-.73-.5.05-.5.05-.5.8.06 1.23.84 1.23.84.72 1.22 1.87.88 2.33.66.07-.52.28-.88.5-1.08-1.77-.19-3.64-.88-3.64-3.98 0-.88.32-1.6.82-2.16-.07-.2-.35-1.03.08-2.14 0 0 .68-.21 2.2.83a7.7 7.7 0 0 1 4 0c1.53-1.04 2.2-.83 2.2-.83.45 1.11.17 1.94.09 2.14.52.56.82 1.28.82 2.16 0 3.1-1.87 3.78-3.66 3.98.3.26.54.74.54 1.5v2.21c0 .22.14.47.54.4A8.1 8.1 0 0 0 16 8.2 8 8 0 0 0 8 .13\" fill=\"currentColor\"/>\u003c/svg>", urlClassName: "text-v0-blue-900 [[data-prompt-url-open-mode]_&]:cursor-pointer [[data-prompt-url-open-mode]_&]:hover:underline", urlFaviconSlotStyle: "padding-left: 0.75rem; margin-right: 0.25rem; border-radius: 2px; background-position: center; background-size: 0.75rem 0.75rem; background-repeat: no-repeat;", }); v0 Max Contact Form Image Editor Mini Game Finance Calculator Start with a template Apps and Games Landing Pages Components Dashboards Browse all Browse all Prompt. Build. Publish. Generate working applications in minutes with AI. Publish as live websites in seconds.
Prompt. Build. Publish.
Connect to GitHub and push code directly to your repository.
