成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

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

開發 前端
v0能夠快速生成前端頁面,讓AI在前端開發領域的潛力更進一步展現出來,距離 AI 替代前端開發更近一步?在此之后,陸續出現了多個 v0 的替代品,下面就來分享兩個好玩又好用的 AI 代碼生成工具!

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

vue0

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

vue0 的特性如下:

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

在 vue0 的網站上,有很多已經生成的頁面及源碼:

比如,對于以下頁面:

生成的代碼如下:

<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/vue0

openv0

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

openv0 目前支持的前端框架有:

  • React
  • Next.js
  • Svelte

支持的 UI 庫有:

  • NextUI
  • Flowbite
  • Shadcn

Github:https://github.com/raidendotai/openv0/。

責任編輯:姜華 來源: 前端充電寶
相關推薦

2023-12-22 14:09:08

AI文本編輯器AiEditor

2025-05-30 01:30:00

Anthropic技巧AI

2023-06-04 13:56:44

開源項目AI

2023-05-26 18:54:02

開源博客系統

2014-03-13 10:43:26

Linux網絡測試監控工具

2022-04-08 13:17:36

Linux安全工具漏洞安全工具

2022-04-11 08:56:27

AIAI算法

2023-11-26 09:04:10

Vue性能

2020-11-09 09:23:43

Vue組織架構

2022-12-05 14:35:30

2024-08-30 08:15:59

VueAI工具

2023-04-13 11:39:05

2019-01-17 09:14:34

2021-03-11 11:01:20

iOS小組件iPhone

2017-07-25 08:54:26

前端JsxVue

2022-03-29 12:01:57

Vue 組件js組件工具集

2023-07-18 19:11:21

配置信令系統

2021-09-09 18:12:22

內存分段式網絡

2022-04-22 12:55:33

Qt開源項目

2024-05-16 17:07:04

紅帽AIRHEL AI
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产jizz女人多喷水99 | 福利片在线| 99久久精品国产一区二区三区 | 婷婷色国产偷v国产偷v小说 | 国产成人精品网站 | 亚洲a在线视频 | 久久国产美女视频 | 成人网在线看 | 韩国欧洲一级毛片 | 欧洲精品码一区二区三区免费看 | 国产欧美精品一区二区三区 | 成人免费视频观看视频 | 日韩精品一区二区久久 | 国产乱码精品1区2区3区 | 亚洲国产情侣 | 精品视频国产 | 精品一二区 | jdav视频在线观看免费 | www久久国产 | 国产精品一区二区三区四区 | 日日噜噜噜夜夜爽爽狠狠视频97 | 男人的天堂久久 | 午夜欧美 | 亚洲网站在线观看 | 日韩欧美网 | 在线中文字幕视频 | 在线看片国产精品 | 久久婷婷麻豆国产91天堂 | 久久中文视频 | 日韩中出 | 久久极品| 免费成人高清 | 在线观看免费高清av | 中文字幕一区二区三区精彩视频 | 亚洲国产一区二区三区 | 91久久精品一区二区二区 | 欧美老少妇一级特黄一片 | www国产成人免费观看视频,深夜成人网 | 在线观看欧美日韩视频 | 高清黄色 | 99久久精品国产一区二区三区 |