- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Code Block
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Form
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Marker
- Menubar
- Message
- Message Scroller
- Native Select
- Navigation Menu
- Number Field
- Pagination
- Pin Input
- Popover
- Progress
- Questionnaire
- Radio Group
- Range Calendar
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stepper
- Switch
- Table
- Tabs
- Tags Input
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Trace
- Typography
AI Elements are patterns for building agentic interfaces. Each one is a composition of shadcn-vue components that you copy into your project. There is no package to install. The code is yours.
A Chat is a list of Message turns inside a Message Scroller. The steps an agent takes inside a turn, like Reasoning, Tool and Plan, are built on Trace, so every step has the same shape.
Coming from ai-elements-vue.com? See Migrating from AI Elements Vue.
Patterns
Migrating from AI Elements Vue
If you used AI Elements Vue from ai-elements-vue.com, here is what changes.
Existing projects
You do not need to migrate. When you installed components from ai-elements-vue.com, the code was copied into your project. It is yours, and it keeps working as is.
To move a wrapper onto shadcn-vue components, use the prompt in the Migrating from AI Elements Vue section of its pattern page. Paste it into your coding agent. It rebuilds the folder in components/ai-elements on Trace, Code Block and the other shadcn-vue components, and keeps every export and its props, so the code that uses it does not change.
For example, the Queue prompt rebuilds queue/ on Trace, and the Inline Citation prompt rebuilds inline-citation/ on Hover Card.
What replaces each element
Each folder from AI Elements Vue, and the shadcn-vue pattern or component that replaces it.
| AI Elements Vue | shadcn-vue |
|---|---|
agent/ | Subagent |
attachments/ | Attachment |
chain-of-thought/ | Chain of Thought |
checkpoint/ | Checkpoint |
code-block/ | Code Block |
commit/ | Trace |
confirmation/ | Confirmation |
context/ | Context |
conversation/ | Chat |
file-tree/ | File Tree |
inline-citation/ | Inline Citation |
loader/ | Spinner |
message/ | Message |
model-selector/ | Model Selector |
plan/ | Plan |
prompt-input/ | Prompt Input |
queue/ | Queue |
reasoning/ | Reasoning |
shimmer/ | shimmer |
sources/ | Sources |
stack-trace/ | Stack Trace |
suggestion/ | Suggestion |
task/ | Task |
terminal/ | Terminal |
test-results/ | Test Results |
tool/ | Tool |
Elements without a replacement
We did not rebuild these elements. Few projects use them, and each one is also a small composition you can build from components shadcn-vue already has, listed below.
Your copy keeps working. If you still need one of these, open an issue and we will help you build it.
| AI Elements Vue | Build it with |
|---|---|
artifact/ | Card, Button and Tooltip |
audio-player/ | An audio element, with Button Group and Slider |
canvas/, connection/, controls/, edge/, node/, panel/ and toolbar/ | Vue Flow, with Card and Button Group |
environment-variables/ | Item, Badge and Switch |
image/ | An img element |
mic-selector/ and voice-selector/ | Combobox |
open-in-chat/ | Dropdown Menu |
package-info/ | Item and Badge |
persona/ | A Rive animation |
sandbox/ | Trace, Tabs and Code Block |
schema-display/ | Collapsible, Badge and Code Block |
snippet/ | Input Group |
speech-input/ | Button and Spinner, with the Web Speech API |
transcription/ | A Button for each segment, to seek to it |
New projects
Build from shadcn-vue components instead.
Add the components
pnpm dlx shadcn-vue@latest add trace code-block
Copy a pattern
Open a pattern above and copy its code into your project. Each page lists any other components it needs.
Or ask your coding agent to do it:
Add the Reasoning pattern from https://www.shadcn-vue.com/docs/ai-elements/reasoning to my chat.Missing an element? Open an issue and tell us what you need.
Sponsors
Your logo hereshadcn-vue is free and open source. Sponsorship keeps it maintained.
Become a sponsor