正在加载视频...

视频加载失败

▲ Introducing AI Elements by Vercel The shadcn component library for building AI-native apps. $ npx ai-elements

180,686 次观看 • 1 年前 •via X (Twitter)

50 条评论

Hayden 的头像
Hayden1 年前

Shoutout to the GOAT @ryanharaki_ for the collab on this. Also if you're familiar with the Kibo AI components, I donated them to Vercel to form the foundation of project! We've made some fantastic improvements though... 👇

Hayden 的头像
Hayden1 年前

1/ New Components As AI interfaces evolve, we're seeing more patterns emerge from concepts like RAG, MCP and Deep Research. To help build for these, we've created these additional components... 🖱️ Actions 🌉 Image 💬 InlineCitation 🌀 Loader ✅ Task 🖥️ WebPreview

Hayden 的头像
Hayden1 年前

2/ CodeBlock simplified for typical AI responses Code blocks in Markdown are typically simple. The Kibo UI code block, while very powerful, is too much overhead for this. We've rebuilt the Code Block component so it's a lot simpler.

Hayden 的头像
Hayden1 年前

3/ @v0 style icons Components like Reasoning, Source and Task now have icons prefixing their Trigger title, like you'd find on v0. This makes them much nicer to look at when used in a more agentic fashion.

Hayden 的头像
Hayden1 年前

4/ Animations All collapsible components (Task, Sources, Reasoning, etc.) have animations when you open and close them! A nice little quality of life improvement.

Hayden 的头像
Hayden1 年前

5/ A better Response component The Response component's react-markdown implementation is now wrapped in our markdown-sanitizers package (thank u @cramforce) to help secure your AI agents. It also has intelligent parsing that auto-completes unterminated formatting and hides incomplete links. Additionally, it can render mathematical equations now!

Hayden 的头像
Hayden1 年前

6/ Seamless integration with AI SDK Component types have been improved for more seamless integration with AI SDK. You can still bring any provider you'd like though 😅

Hayden 的头像
Hayden1 年前

7/ Misc rendering improvements There's been a ton of small tweaks around the place. For example, Tool component parameters are rendered in a CodeBlock!

Hayden 的头像
Hayden1 年前

We hope you enjoy AI Elements! Follow me @haydenbleasel for updates. Also, Like/Repost the quote below if you can:

Ivan Vasilov 的头像
Ivan Vasilov1 年前

@vercel @shadcn Shouldn't this Props subheading be named Components?

Hayden 的头像
Hayden1 年前

@vercel @shadcn

Ivan Vasilov 的头像
Ivan Vasilov1 年前

@vercel @shadcn You've done an awesome job btw! I think we'll be migrating to these elements tomorrow :)

Nathan Baschez 的头像
Nathan Baschez1 年前

@vercel @shadcn this is awesome

alli 的头像
alli1 年前

@vercel @shadcn DOPE

Rohan Dave 的头像
Rohan Dave1 年前

@vercel @shadcn insane! do you plan to use this in Chat SDK repo instead of the custom UI components?

v0 intern 的头像
v0 intern1 年前

@vercel @shadcn ok kinda based

Gil 的头像
Gil1 年前

@vercel @shadcn Welcome! Would love to see artifacts.

Nico Albanese 的头像
Nico Albanese1 年前

@vercel @shadcn Banger

Elliot Hesp 的头像
Elliot Hesp1 年前

@vercel @shadcn Very cool! I'm curious, the JSON on looks to be a single item schema, and it's installed with ?components=name... is this a new thing on Shadcn side?

Hayden 的头像
Hayden1 年前

@vercel @shadcn That's a dynamically generated registry pattern that I'll be sharing more about real soon 😄

Elliot Hesp 的头像
Elliot Hesp1 年前

@vercel @shadcn Nice! Do you have a utility to help build that? Maintaining the json against the codebase isnt amazing DX at the moment

Hayden 的头像
Hayden1 年前

@vercel @shadcn Working on it this weekend! Will share next week

Elliot Hesp 的头像
Elliot Hesp1 年前

@vercel @shadcn Hey, did you manage to work/publish this anywhere?

matthew! 的头像
matthew!1 年前

@vercel @shadcn holy shit

Colin | clerk.com 的头像
Colin | clerk.com1 年前

@vercel @shadcn Congrats on the 🚢!

Maxi 的头像
Maxi1 年前

@vercel @shadcn Looking great 🔥 what's wrong with Why build two of the same? Genuinely asking

Rhys 的头像
Rhys1 年前

@vercel @shadcn Love it

Sunday 的头像
Sunday1 年前

@vercel @shadcn 🔥

Shri 的头像
Shri1 年前

@vercel @shadcn dope 🤌🏽

Rich Haines 的头像
Rich Haines1 年前

@vercel @shadcn Love it!

Lovly 的头像
Lovly1 年前

@vercel @shadcn @zernonia 👀 port to vue?

Vamsi Batchu 的头像
Vamsi Batchu1 年前

@vercel @shadcn This is awesome !

li li 的头像
li li1 年前

@vercel @shadcn 👍。can’t wait to try this one.

Qasim 的头像
Qasim1 年前

@vercel @shadcn this is so fire

Juan 的头像
Juan1 年前

@vercel @shadcn Congrats. Very nice components, I’ll use it for sure

rich binion 的头像
rich binion1 年前

@vercel @shadcn Congrats on the launch boss. Clean gradient animation here, couldn't help but notice the "flicker" when the cursor leaves the element. Just thought it stood out compared to the animation of the AI SDK logo. Props to you and the team styll 🫡

Amit Mirgal 🇮🇳 的头像
Amit Mirgal 🇮🇳1 年前

@vercel @shadcn one of the best dx @shadcn ui has given to devs... it just simplifies everything... 🔥

James 的头像
James1 年前

@vercel @shadcn I noticed the Chat SDK repo (ai-chatbot) has not been updated in a month or so. Do you think we should expect Chat SDK to be updated to use AI Elements and have some new features like MCP server management? Or is Chat SDK replaced by AI Elements?

Hayden 的头像
Hayden1 年前

@vercel @shadcn Yessir, eventually we expect Chat SDK components to merge with AI Elements so they're like iterative building blocks for AI-native web applications. I'll let you know once we start working on it 😅

Ghost 的头像
Ghost1 年前

@vercel @shadcn This looks very promising

Hanzlah 🇵🇸 的头像
Hanzlah 🇵🇸1 年前

@vercel @shadcn goated

Ashwin V C 的头像
Ashwin V C1 年前

@vercel @shadcn So cool. This is wonderful.

AjanRaj 的头像
AjanRaj1 年前

@vercel @shadcn looks super cool, gonna give it a try

Greg Charles 的头像
Greg Charles1 年前

@vercel @shadcn Can’t wait to instrument

AI James 的头像
AI James1 年前

@vercel @shadcn You guys cooked! 👨🏻‍🍳

sock 的头像
sock1 年前

@vercel @shadcn @developedbyed

Jason Curry 的头像
Jason Curry1 年前

@vercel @shadcn Ahhh, very nice!!!

Sriket Komali 的头像
Sriket Komali1 年前

@vercel @shadcn this is actually huge. @BraceSproul demo coming soon for langgraph integration?

Gokul 的头像
Gokul1 年前

@vercel @shadcn Those are some really components. My fav component is the loader 😉

Sriket Komali 的头像
Sriket Komali1 年前

@vercel @shadcn this is so good. you have to export the useCarousel hook from the shadcn primitive for the inlinechat element, but everything else is beautiful.

相关视频