|
1 | | -# AI Elements Vue |
2 | | - |
3 | | -[AI Elements Vue](https://ai-elements-vue.com) is an unofficial community-led [Vue](https://vuejs.org) port of [AI Elements](https://github.com/vercel/ai-elements). |
4 | | - |
5 | | -> **Note** <br> **We are not affiliated with AI Elements, but the project has the author’s encouragement and support.** <br> This is a project born out of the need for a similar project for the Vue ecosystem. |
| 1 | +<div align="center"> |
| 2 | + <img src="./media/cover.png" > |
| 3 | +</div> |
| 4 | + |
| 5 | +<br /> |
| 6 | + |
| 7 | +<div align="center"> |
| 8 | + <a href="https://www.npmjs.com/package/ai-elements-vue" target="\_parent"> |
| 9 | + <img alt="" src="https://img.shields.io/npm/dm/ai-elements-vue.svg" /> |
| 10 | + </a> |
| 11 | + <a href="#badge"> |
| 12 | + <img src="https://img.shields.io/github/v/release/vuepont/ai-elements-vue" alt="Release"/> |
| 13 | + </a> |
| 14 | + <a href="https://github.com/vuepont/ai-elements-vue" target="\_parent"> |
| 15 | + <img alt="" src="https://img.shields.io/github/stars/vuepont/ai-elements-vue.svg?style=social&label=Star" alt="GitHub stars" /> |
| 16 | + </a> |
| 17 | +</div> |
6 | 18 |
|
7 | 19 | ## Overview |
8 | 20 |
|
9 | | -[AI Elements Vue](https://ai-elements-vue.com) is a component library built on top of [shadcn-vue](https://www.shadcn-vue.com/) to help you build AI-native applications faster. It provides pre-built, customizable Vue components specifically designed for AI applications, including conversations, messages, code blocks, reasoning displays, and more. The CLI makes it easy to add these components to your Vue.js or Nuxt.js project. |
| 21 | +[AI Elements Vue](https://ai-elements-vue.com) provides pre-built, customizable Vue components specifically designed for AI applications, including conversations, messages, code blocks, reasoning displays, and more. The CLI makes it easy to add these components to your Vue.js and Nuxt.js project. |
10 | 22 |
|
11 | 23 | ## Installation |
12 | 24 |
|
@@ -53,6 +65,7 @@ npx ai-elements-vue@latest add <component-name> |
53 | 65 | ``` |
54 | 66 |
|
55 | 67 | Examples: |
| 68 | + |
56 | 69 | ```bash |
57 | 70 | # Install the message component |
58 | 71 | npx ai-elements-vue@latest add message |
@@ -80,23 +93,43 @@ npx shadcn-vue@latest add https://registry.ai-elements-vue.com/message.json |
80 | 93 |
|
81 | 94 | AI Elements Vue includes the following components: |
82 | 95 |
|
83 | | -| Component | Status | Description | |
84 | | -|-----------|--------|-------------| |
85 | | -| `message` | ✅ | Individual chat messages with avatars | |
86 | | -| `conversation` | ✅ | Container for chat conversations | |
87 | | -| `response` | ✅ | Formatted AI response display | |
88 | | -| `prompt-input` | ✅ | Advanced input component with model selection | |
89 | | -| `actions` | ✅ | Interactive action buttons for AI responses | |
90 | | -| `branch` | ✅ | Branch visualization for conversation flows | |
91 | | -| `code-block` | ✅ | Syntax-highlighted code display with copy functionality | |
92 | | -| `image` | ✅ | AI-generated image display component | |
93 | | -| `inline-citation` | ❌ | Inline source citations | |
94 | | -| `loader` | ✅ | Loading states for AI operations | |
95 | | -| `reasoning` | ❌ | Display AI reasoning and thought processes | |
96 | | -| `source` | ❌ | Source attribution component | |
97 | | -| `suggestion` | ✅ | Quick action suggestions | |
98 | | -| `task` | ❌ | Task completion tracking | |
99 | | -| `tool` | ❌ | Tool usage visualization | |
| 96 | +| Component | Description | |
| 97 | +| ------------------ | ------------------------------------------------------- | |
| 98 | +| **Chatbot** | | |
| 99 | +| `chain-of-thought` | Display AI reasoning and thought processes | |
| 100 | +| `checkpoint` | Conversation checkpoint component | |
| 101 | +| `confirmation` | Tool execution approval workflows | |
| 102 | +| `context` | Display Context consumption | |
| 103 | +| `conversation` | Container for chat conversations | |
| 104 | +| `inline-citation` | Inline source citations | |
| 105 | +| `message` | Individual chat messages with avatars | |
| 106 | +| `model-selector` | AI model selection component | |
| 107 | +| `plan` | Plan and task planning display component | |
| 108 | +| `prompt-input` | Advanced input component with model selection | |
| 109 | +| `queue` | Message and todo queue with attachments | |
| 110 | +| `reasoning` | Display AI reasoning and thought processes | |
| 111 | +| `shimmer` | Text shimmer animation effect | |
| 112 | +| `sources` | Source attribution component | |
| 113 | +| `suggestion` | Quick action suggestions | |
| 114 | +| `task` | Task completion tracking | |
| 115 | +| `tool` | Tool usage visualization | |
| 116 | +| **Workflow** | | |
| 117 | +| `canvas` | ReactFlow canvas for workflow visualizations | |
| 118 | +| `connection` | Connection line component for workflow edges | |
| 119 | +| `controls` | Flow controls for canvas (zoom, fit view, etc.) | |
| 120 | +| `edge` | Edge component for connections between workflow nodes | |
| 121 | +| `node` | Node component for workflow graphs | |
| 122 | +| `panel` | Panel component for canvas overlays | |
| 123 | +| `toolbar` | Node toolbar for workflow elements | |
| 124 | +| **Vibe-Coding** | | |
| 125 | +| `artifact` | Display a code or document | |
| 126 | +| `web-preview` | Embedded web page previews | |
| 127 | +| **Documentation** | | |
| 128 | +| `open-in-chat` | Open in chat button for a message | |
| 129 | +| **Utilities** | | |
| 130 | +| `code-block` | Syntax-highlighted code display with copy functionality | |
| 131 | +| `image` | AI-generated image display component | |
| 132 | +| `loader` | Loading states for AI operations | |
100 | 133 |
|
101 | 134 | ## How It Works |
102 | 135 |
|
@@ -130,6 +163,13 @@ If you'd like to contribute to AI Elements Vue, please follow these steps: |
130 | 163 | 3. Make your changes to the components in `packages/elements`. |
131 | 164 | 4. Open a PR to the `main` branch. |
132 | 165 |
|
| 166 | +## 🙏 Acknowledgments |
| 167 | + |
| 168 | +This project draws inspiration from several excellent projects: |
| 169 | + |
| 170 | +- **[shadcn-vue](https://www.shadcn-svelte.com/)** - UI component foundation |
| 171 | +- **[Vercel AI Elements](https://vercel.com/changelog/introducing-ai-elements)** - AI component concepts |
| 172 | + |
133 | 173 | --- |
134 | 174 |
|
135 | | -Made with ❤️ by [cwandev](https://github.com/cwandev) |
| 175 | +Made with ❤️ by [vuepont](https://github.com/vuepont) |
0 commit comments