日韩成人免费在线_国产成人一二_精品国产免费人成电影在线观..._日本一区二区三区久久久久久久久不

當前位置:首頁 > 科技  > 軟件

開源了!用 AI 生成 Vue 組件,好玩又好用

來源: 責編: 時間:2024-01-15 09:21:57 197觀看
導讀三個月前,Vercel 推出了其 AI 代碼生成工具 —— v0(v0.dev),這款工具可以快速生成前端組件代碼,引起了前端圈的廣泛關注。通過簡單的描述,v0能夠快速生成前端頁面,讓AI在前端開發領域的潛力更進一步展現出來,距離 AI 替代前

Sbw28資訊網——每日最新資訊28at.com

三個月前,Vercel 推出了其 AI 代碼生成工具 —— v0(v0.dev),這款工具可以快速生成前端組件代碼,引起了前端圈的廣泛關注。通過簡單的描述,v0能夠快速生成前端頁面,讓AI在前端開發領域的潛力更進一步展現出來,距離 AI 替代前端開發更近一步?在此之后,陸續出現了多個 v0 的替代品,下面就來分享兩個好玩又好用的 AI 代碼生成工具!Sbw28資訊網——每日最新資訊28at.com

vue0

vue0 是最近剛開源的一個 AI 工具,借助 Open AI 實現。通過簡單的描述,就可以快速生成一個 Vue 頁面,目前支持 shadcn/vue,但很快就會支持更多的 UI 庫。Sbw28資訊網——每日最新資訊28at.com

Sbw28資訊網——每日最新資訊28at.com

vue0 的特性如下:Sbw28資訊網——每日最新資訊28at.com

  • 編寫多遍步驟
  • 編寫迭代步驟
  • 將組件存儲在 fs 中
  • 渲染生成的代碼
  • 添加用戶功能
  • 屏幕截圖生成組件
  • 簡單元數據
  • 改進緩存

在 vue0 的網站上,有很多已經生成的頁面及源碼:Sbw28資訊網——每日最新資訊28at.com

Sbw28資訊網——每日最新資訊28at.com

比如,對于以下頁面:Sbw28資訊網——每日最新資訊28at.com

Sbw28資訊網——每日最新資訊28at.com

生成的代碼如下:Sbw28資訊網——每日最新資訊28at.com

<script setup lang="ts">import { ref } from 'vue';import { Check } from 'lucide-vue-next';import { Switch } from '@/components/ui/switch';import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';import { Button } from '@/components/ui/button';const isYearly = ref(false);</script><template>  <div class="p-10 bg-gray-100 dark:bg-black">    <div class="max-w-7xl mx-auto">      <div class="text-center mb-8">        <h2 class="text-3xl font-bold text-gray-800 dark:text-white">Pricing Plans</h2>        <p class="text-md text-gray-600 dark:text-gray-300">Choose the plan that's right for you.</p>      </div>      <div class="mb-8 text-center">        <label for="pricing-toggle" class="inline-flex items-center cursor-pointer">          <span class="mr-2 text-gray-600 dark:text-gray-400">Monthly</span>          <Switch            id="pricing-toggle"            v-model="isYearly"            aria-label="Toggle between month/year pricing"            class="mx-auto"          />          <span class="ml-2 text-gray-600 dark:text-gray-400">Yearly</span>        </label>      </div>      <div class="grid md:grid-cols-3 gap-8">        <!-- Cards will go here with isYearly logic for pricing -->        <Card class="shadow-lg">          <CardHeader>            <CardTitle class="text-xl font-semibold text-gray-800 dark:text-white">Basic</CardTitle>            <CardDescription class="text-gray-500 dark:text-gray-400">For individual use</CardDescription>          </CardHeader>          <CardContent>            <p class="text-4xl font-bold text-gray-800 dark:text-white">$0<span class="text-sm">{{ isYearly ? '/yr' : '/mo' }}</span></p>            <ul class="mt-4">              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> 1 Project              </li>              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> 100MB Storage              </li>            </ul>          </CardContent>          <CardFooter>            <Button variant="outline">Get Started</Button>          </CardFooter>        </Card>        <!-- Repeat for other cards -->        <Card class="shadow-lg">          <CardHeader>            <CardTitle class="text-xl font-semibold text-gray-800 dark:text-white">Pro</CardTitle>            <CardDescription class="text-gray-500 dark:text-gray-400">For professionals</CardDescription>          </CardHeader>          <CardContent>            <p class="text-4xl font-bold text-gray-800 dark:text-white">$10<span class="text-sm">{{ isYearly ? '/yr' : '/mo' }}</span></p>            <ul class="mt-4">              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> 10 Projects              </li>              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> 5GB Storage              </li>            </ul>          </CardContent>          <CardFooter>            <Button variant="secondary">Get Started</Button>          </CardFooter>        </Card>        <!-- Repeat for other cards -->        <Card class="shadow-lg">          <CardHeader>            <CardTitle class="text-xl font-semibold text-gray-800 dark:text-white">Enterprise</CardTitle>            <CardDescription class="text-gray-500 dark:text-gray-400">For organizations</CardDescription>          </CardHeader>          <CardContent>            <p class="text-4xl font-bold text-gray-800 dark:text-white">$99<span class="text-sm">{{ isYearly ? '/yr' : '/mo' }}</span></p>            <ul class="mt-4">              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> Unlimited Projects              </li>              <li class="flex items-center text-gray-600 dark:text-gray-300">                <Check class="mr-2 w-4 h-4 text-green-500" /> 100GB Storage              </li>            </ul>          </CardContent>          <CardFooter>            <Button variant="destructive">Get Started</Button>          </CardFooter>        </Card>      </div>    </div>  </div></template>

Github:https://github.com/zernonia/vue0Sbw28資訊網——每日最新資訊28at.com

openv0

openv0 是一個生成式UI組件框架,憑借AI技術,可以輕松實現UI組件的實時預覽、生成與迭代。它深度整合豐富的開源組件庫與圖標,為生成式工作流提供一站式資源。其設計核心理念在于高度模塊化與精細的生成過程管理,確保流程的靈活與高效。組件生成采用多步驟管道化流程,每一步都由獨立插件執行,進一步提升了整個流程的靈活性和效率。Sbw28資訊網——每日最新資訊28at.com

Sbw28資訊網——每日最新資訊28at.com

openv0 目前支持的前端框架有:Sbw28資訊網——每日最新資訊28at.com

  • React
  • Next.js
  • Svelte

支持的 UI 庫有:Sbw28資訊網——每日最新資訊28at.com

  • NextUI
  • Flowbite
  • Shadcn

Github:https://github.com/raidendotai/openv0/。Sbw28資訊網——每日最新資訊28at.com

本文鏈接:http://www.www897cc.com/showinfo-26-60988-0.html開源了!用 AI 生成 Vue 組件,好玩又好用

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com

上一篇: API設計:從基礎到優秀實踐

下一篇: Python在自動化和腳本編程領域的廣闊應用前景

標簽:
  • 熱門焦點
  • 6月iOS設備好評榜:第一蟬聯榜首近一年

    作為安兔兔各種榜單里變化最小的那個,2023年6月的iOS好評榜和上個月相比沒有任何排名上的變化,僅僅是部分設備好評率的下降,長年累月的用戶評價和逐漸退出市場的老款機器讓這
  • 三言兩語說透設計模式的藝術-簡單工廠模式

    一、寫在前面工廠模式是最常見的一種創建型設計模式,通常說的工廠模式指的是工廠方法模式,是使用頻率最高的工廠模式。簡單工廠模式又稱為靜態工廠方法模式,不屬于GoF 23種設計
  • 如何正確使用:Has和:Nth-Last-Child

    我們可以用CSS檢查,以了解一組元素的數量是否小于或等于一個數字。例如,一個擁有三個或更多子項的grid。你可能會想,為什么需要這樣做呢?在某些情況下,一個組件或一個布局可能會
  • 慕巖炮轟抖音,百合網今何在?

    來源:價值研究所 作者:Hernanderz&ldquo;難道就因為自己的一個產品牛逼了,從客服到總裁,都不愿意正視自己產品和運營上的問題,選擇逃避了嗎?&rdquo;這一番話,出自百合網聯合創
  • 2納米決戰2025

    集微網報道 從三強爭霸到四雄逐鹿,2nm的廝殺聲已然隱約傳來。無論是老牌勁旅臺積電、三星,還是誓言重回先進制程領先地位的英特爾,甚至初成立不久的新
  • 半導體需求下滑 三星電子DS業務部門今年營業虧損預計超10萬億韓元

    7月17日消息,據外媒報道,去年下半年開始的半導體需求下滑,影響到了三星電子、SK海力士、英特爾等諸多廠商,營收明顯下滑,部分廠商甚至出現了虧損。作為
  • iQOO Neo8 Pro評測:旗艦雙芯加持 最強性能游戲旗艦

    【Techweb評測】去年10月,iQOO推出了一款Neo7手機,該機搭載了聯發科天璣9000+,配備獨顯芯片Pro+,帶來了同價位段最佳的游戲體驗,一經上市便受到了諸多用
  • “買真退假” 這種“羊毛”不能薅

    □ 法治日報 記者 王春   □ 本報通訊員 胡佳麗  2020年初,還在上大學的小東加入了一個大學生兼職QQ群。群主&ldquo;七王&rdquo;在群里介紹一些刷單賺
  • 榮耀Magic4 至臻版 首創智慧隱私通話 強勁影音系統

    2022年第一季度臨近尾聲,在該季度內,許多品牌陸續發布自己的最新產品,讓大家從全新的角度來了解當今的手機技術。手機是電子設備中,更新迭代十分迅速的一款產品,基
Top 主站蜘蛛池模板: 巩留县| 阿克苏市| 东明县| 沂源县| 曲松县| 乌恰县| 峡江县| 四会市| 兴城市| 喀喇| 吕梁市| 红河县| 盘锦市| 会同县| 潜山县| 成安县| 大关县| 霍邱县| 尼玛县| 上林县| 胶州市| 苍梧县| 通化市| 磐安县| 阿尔山市| 田林县| 策勒县| 龙口市| 雅江县| 沭阳县| 伽师县| 礼泉县| 屏东市| 彭泽县| 扎鲁特旗| 灵山县| 乐东| 茂名市| 隆林| 巴马| 建瓯市|