Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

180,686 Aufrufe • vor 1 Jahr •via X (Twitter)

50 Kommentare

Profilbild von Hayden
Haydenvor 1 Jahr

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... 👇

Profilbild von Hayden
Haydenvor 1 Jahr

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

Profilbild von Hayden
Haydenvor 1 Jahr

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.

Profilbild von Hayden
Haydenvor 1 Jahr

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.

Profilbild von Hayden
Haydenvor 1 Jahr

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

Profilbild von Hayden
Haydenvor 1 Jahr

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!

Profilbild von Hayden
Haydenvor 1 Jahr

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 😅

Profilbild von Hayden
Haydenvor 1 Jahr

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!

Profilbild von Hayden
Haydenvor 1 Jahr

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

Profilbild von Ivan Vasilov
Ivan Vasilovvor 1 Jahr

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

Profilbild von Hayden
Haydenvor 1 Jahr

@vercel @shadcn

Profilbild von Ivan Vasilov
Ivan Vasilovvor 1 Jahr

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

Profilbild von Nathan Baschez
Nathan Baschezvor 1 Jahr

@vercel @shadcn this is awesome

Profilbild von alli
allivor 1 Jahr

@vercel @shadcn DOPE

Profilbild von Rohan Dave
Rohan Davevor 1 Jahr

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

Profilbild von v0 intern
v0 internvor 1 Jahr

@vercel @shadcn ok kinda based

Profilbild von Gil
Gilvor 1 Jahr

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

Profilbild von Nico Albanese
Nico Albanesevor 1 Jahr

@vercel @shadcn Banger

Profilbild von Elliot Hesp
Elliot Hespvor 1 Jahr

@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?

Profilbild von Hayden
Haydenvor 1 Jahr

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

Profilbild von Elliot Hesp
Elliot Hespvor 1 Jahr

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

Profilbild von Hayden
Haydenvor 1 Jahr

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

Profilbild von Elliot Hesp
Elliot Hespvor 1 Jahr

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

Profilbild von matthew!
matthew!vor 1 Jahr

@vercel @shadcn holy shit

Profilbild von Colin | clerk.com
Colin | clerk.comvor 1 Jahr

@vercel @shadcn Congrats on the 🚢!

Profilbild von Maxi
Maxivor 1 Jahr

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

Profilbild von Rhys
Rhysvor 1 Jahr

@vercel @shadcn Love it

Profilbild von Sunday
Sundayvor 1 Jahr

@vercel @shadcn 🔥

Profilbild von Shri
Shrivor 1 Jahr

@vercel @shadcn dope 🤌🏽

Profilbild von Rich Haines
Rich Hainesvor 1 Jahr

@vercel @shadcn Love it!

Profilbild von Lovly
Lovlyvor 1 Jahr

@vercel @shadcn @zernonia 👀 port to vue?

Profilbild von Vamsi Batchu
Vamsi Batchuvor 1 Jahr

@vercel @shadcn This is awesome !

Profilbild von li li
li livor 1 Jahr

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

Profilbild von Qasim
Qasimvor 1 Jahr

@vercel @shadcn this is so fire

Profilbild von Juan
Juanvor 1 Jahr

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

Profilbild von rich binion
rich binionvor 1 Jahr

@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 🫡

Profilbild von Amit Mirgal 🇮🇳
Amit Mirgal 🇮🇳vor 1 Jahr

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

Profilbild von James
Jamesvor 1 Jahr

@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?

Profilbild von Hayden
Haydenvor 1 Jahr

@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 😅

Profilbild von Ghost
Ghostvor 1 Jahr

@vercel @shadcn This looks very promising

Profilbild von Hanzlah 🇵🇸
Hanzlah 🇵🇸vor 1 Jahr

@vercel @shadcn goated

Profilbild von Ashwin V C
Ashwin V Cvor 1 Jahr

@vercel @shadcn So cool. This is wonderful.

Profilbild von AjanRaj
AjanRajvor 1 Jahr

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

Profilbild von Greg Charles
Greg Charlesvor 1 Jahr

@vercel @shadcn Can’t wait to instrument

Profilbild von AI James
AI Jamesvor 1 Jahr

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

Profilbild von sock
sockvor 1 Jahr

@vercel @shadcn @developedbyed

Profilbild von Jason Curry
Jason Curryvor 1 Jahr

@vercel @shadcn Ahhh, very nice!!!

Profilbild von Sriket Komali
Sriket Komalivor 1 Jahr

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

Profilbild von Gokul
Gokulvor 1 Jahr

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

Profilbild von Sriket Komali
Sriket Komalivor 1 Jahr

@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.

Ähnliche Videos