News
AI Elements: Vercel turns the AI chat interface into detachable building blocks
1 min read
Source: aixq.cc
Every time you make an AI application, the chat interface has to be rewritten: message bubbles, reasoning display, code highlighting, attachment uploading. These components are not complicated individually, but together they are enough for you to consume one iteration. What’s even more troublesome is that most chat UI libraries are black boxes. You can’t see the source code after npm install. If you want to change the corners to rounded corners, you have to look through the documentation to find props. Vercel has apparently had enough of this cycle, too. The AI Elements they launched is, strictly speaking, not a component library, but a component distribution system. It is based on the shadcn/ui code distribution model. The CLI directly copies the source code to your project directory. You can modify it however you want. Vercel only maintains the upstream version in the registry.