跳过导航
▲ Introducing AI Elements by Vercel
0:00 / 1:01

▲ Introducing AI Elements by Vercel

Hayden

@haydenbleasel1.8万 位关注者

在 X 上查看
1,316 个赞下载原帖

180,686 次观看

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

50 条评论

评论来自 X (Twitter) 上的原帖

  • Hayden 的头像

    @haydenbleasel

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

    23 个赞

  • Hayden 的头像

    @haydenbleasel

    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

    13 个赞

  • Hayden 的头像

    @haydenbleasel

    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.

    9 个赞

  • Hayden 的头像

    @haydenbleasel

    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.

    9 个赞

  • Hayden 的头像

    @haydenbleasel

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

    10 个赞

  • Hayden 的头像

    @haydenbleasel

    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!

    12 个赞

  • Hayden 的头像

    @haydenbleasel

    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 😅

    8 个赞

  • Hayden 的头像

    @haydenbleasel

    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!

    13 个赞

  • Hayden 的头像

    @haydenbleasel

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

    15 个赞

  • Ivan Vasilov 的头像

    @ivasilov

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

    3 个赞

  • Hayden 的头像

    @haydenbleasel

    @vercel @shadcn

    1 个赞

  • Ivan Vasilov 的头像

    @ivasilov

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

    3 个赞

  • Nathan Baschez 的头像

    @nbaschez

    @vercel @shadcn this is awesome

    3 个赞

  • alli 的头像

    @sonofalli

    @vercel @shadcn DOPE

    3 个赞

  • Rohan Dave 的头像

    @rohandave_

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

    2 个赞

  • v0 intern 的头像

    @v0intern

    @vercel @shadcn ok kinda based

    2 个赞

  • Gil 的头像

    @gilgNYC

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

    2 个赞

  • Nico Albanese 的头像

    @nicoalbanese10

    @vercel @shadcn Banger

    2 个赞

  • Elliot Hesp 的头像

    @elliothesp

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

    2 个赞

  • Hayden 的头像

    @haydenbleasel

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

    1 个赞