Vercel 发布 50+ UI 行为智能体 SDK
Vercel Labs 发布了 UI SDK,这是一个开源的测试版库,提供为编码智能体构建的界面行为。Vercel UI SDK 是一个无头(headless)库,交付的是行为,而非成品组件。智能体可将这些行为组合成适用于 React、Vue、Svelte、Solid 和 Web Components 的可访问组件。你可以通过我们的 GPULeaderboard.com 浏览器扩展在此查看部署选项和规格。
UI SDK 是 Vercel Labs 推出的一个 UI 行为库,由智能体将其组装成组件。README 列出了键盘导航、焦点、选择、关闭、弹窗、拖放,以及它们所需的 ARIA。这一切都位于 @ui-sdk/core 中。轻量适配器负责在各框架中渲染它。
项目网站用一个 Select 阐释了这一思路。你不是把成品 Select 交给智能体,而是交给它一个弹窗、一个选择模型和类型预输入(typeahead)。这些相同的部件可以生成自动补全、组合框(combobox),或者一个还没有人设计过的组件。
组件始于用 definePrimitive 定义的原语(primitive)。一个原语声明状态、API 和插槽(slot)。插槽将属性、事件和行为附加到 DOM 部件上。README 中的示例用 createFocusRecovery 构建了一个搜索框。其 Clear 按钮仅在存在文本时出现。
随后每个框架通过 createParts 渲染该原语。README 称,这 5 个适配器中的部件完全相同。因此,一份行为定义可以同时服务 React 应用和 Svelte 应用。
ui-sdk.dev 上展示的行为包括:
文档将行为分为 10 个类别,从 Focus 和 Keys 到 Canvas。预置组件包括 Select、Combobox、Date Picker、Menu、Tree 和 Color Picker。
安装方式是一段粘贴进智能体的提示词。它会安装这些包,并向 AGENTS.md 添加一条说明。该说明会指引智能体找到 ui-sdk skill 以及包文档中的 llms.txt。该 skill 通过 npx skills add vercel-labs/ui --skill ui-sdk 安装。根据该 skill 的说明,没有构建步骤的页面可以从 ui-sdk.dev 加载 web.js 和 web.css。
是的,智能体文档描述了在页面渲染前通过 createAgent() 创建的桥接层。agent.snapshot() 会列出组件、其状态以及可用操作。agent.act() 执行某个操作,例如用 setValue 重命名项目。应用可以传入 allow 回调来批准或拒绝操作。变更回调会收到 source: "agent",并且可以取消该变更。工具还可以通过 WebMCP 在受支持的浏览器中注册。
Vercel 在 1 个项目设置任务上,将其桥接层与浏览器工具进行了对比。智能体重命名了一个项目,更新了成员和通知设置,然后保存。两个智能体都通过 Claude Code 使用 Sonnet,任务和系统提示词相同。数字为 3 次运行的中位数。
这些结果只应视为方向性参考。样本只有 1 个任务,而且浏览器工具那一轮使用了不同的组件库。Vercel 没有说明所用 Sonnet 的版本。
全部 6 个包都已发布在 npm 上,版本为 0.1.0-beta.1,发布时间是 2026 年 11 月 12 日,采用 Apache-2.0 许可。使用 npm install @ui-sdk/react @ui-sdk/core 安装,并按框架替换对应的适配器。对等依赖要求严格:React 19+、Vue 3.5+、Svelte 5.33+ 和 Solid 2.0.0-rc.14+。可选的 web.css 文件为组件提供默认外观。
版本和对等依赖范围来自 2026 年 11 月 13 日的 npm。React Aria 的 hooks 和 Ark UI 的 Zag.js 状态机已经将行为与标记分离。UI SDK 的不同之处在于智能体层:一个 skill、随包附带的 llms.txt 以及一个运行时桥接层。
查看 GitHub 仓库、文档和 npm 软件包。你可以通过我们的 GPULeaderboard.com Chrome 扩展程序,在这里查看部署选项和规格。
需要在推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等方面与我们合作?请联系我们
文章《Vercel 发布 UI SDK:面向 AI 编程智能体的 50+ 项 UI 行为》最初发表于 MarkTechPost。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Vercel Releases UI SDK: 50+ UI Behaviors for AI Coding Agents)
Vercel Labs has released UI SDK, an open-source beta library of interface behaviors built for coding agents. Vercel UI SDK is a headless library that ships behaviors, not finished components. Agents combine those behaviors into accessible components for React, Vue, Svelte, Solid and Web Components. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
TL;DR
- Size: 50+ behaviors, 51 component modules in the repo, 6 npm packages at
0.1.0-beta.1 - Runs on: Any modern browser, no GPU. React 19+, Vue 3.5+, Svelte 5.33+, Solid 2 RC, or plain Web Components
- Performance: In Vercel’s own test, an agent used 69% fewer tool calls on a settings task
- Best: Task time fell 61%, from 41 s to 16 s, with the agent bridge (self-reported)
- Worst: That benchmark covers 1 task and 3 runs, and beta APIs may still change
What is Vercel UI SDK?
UI SDK is a library of UI behaviors from Vercel Labs that agents assemble into components. The README lists keyboard navigation, focus, selection, dismissal, popups, drag and drop, and the ARIA they need. All of it lives in @ui-sdk/core. Thin adapters render it in each framework.
The project site explains the idea with a Select. You do not hand the agent a finished Select. You hand it a popup, a selection model and typeahead. Those same parts can produce an autocomplete, a combobox, or a component nobody has designed yet.
How does UI SDK work?
Components start as primitives defined with definePrimitive. A primitive declares state, an API and slots. Slots attach attributes, events and behaviors to DOM parts. The README example builds a search field with createFocusRecovery. Its Clear button appears only when there is text.
Each framework then renders the primitive with createParts. The README says the parts are the same in all 5 adapters. So 1 behavior definition can serve a React app and a Svelte app.
Which behaviors ship?
Behaviors shown on ui-sdk.dev include:
createRovingFocus: arrow keys move through a list with 1 Tab stopcreateTypeahead: type a few letters to jump to an itemcreatePopup: opens next to its trigger and stays on screencreateSelection: select 1 or many, with Shift and CtrlcreateReorder,createResize,createViewportandcreateVirtualizer
The docs group behaviors into 10 categories, from Focus and Keys to Canvas. Prebuilt components include Select, Combobox, Date Picker, Menu, Tree and Color Picker.
How do agents learn it?
Setup is a prompt you paste into your agent. It installs the packages and adds a note to AGENTS.md. That note points the agent to the ui-sdk skill and to llms.txt inside the package docs. The skill installs with npx skills add vercel-labs/ui --skill ui-sdk. Pages without a build step can load web.js and web.css from ui-sdk.dev, per the skill listing.
Can agents operate the UI directly?
Yes, the agent docs describe a bridge created with createAgent() before the page renders. agent.snapshot() lists components, their state and available actions. agent.act() runs an action, such as renaming a project with setValue. Apps can pass an allow callback to approve or refuse actions. Change callbacks receive source: "agent" and can cancel the change. Tools can also be registered with supported browsers through WebMCP.
UI SDK benchmark: agent bridge vs browser tools
Vercel compared its bridge against browser tools on 1 project-settings task. The agent renamed a project, updated members and notification settings, then saved. Both agents used Sonnet through Claude Code, with the same task and system prompt. Figures are medians of 3 runs.
| Metric | Browser tools | UI SDK + bridge | Change |
|---|---|---|---|
| Tool calls | 16 | 5 | -69% |
| Text read (characters) | 39.8k | 6.8k | -83% |
| Time | 41 s | 16 s | -61% |
| Cost | $0.073 | $0.032 | -56% |
Treat these as directional. The sample is 1 task, and the browser-tools run used a different component library. Vercel does not name the Sonnet version.
Deployment and availability
All 6 packages are on npm at 0.1.0-beta.1, published November 12, 2026, under Apache-2.0. Install with npm install @ui-sdk/react @ui-sdk/core, swapping the adapter per framework. Peer requirements are strict: React 19+, Vue 3.5+, Svelte 5.33+ and Solid 2.0.0-rc.14+. An optional web.css file gives components a default look.
How does UI SDK compare with Radix, React Aria, Base UI and Ark UI?
| Metrics | UI SDK | Radix Primitives | React Aria Components | Base UI | Ark UI |
|---|---|---|---|---|---|
| Model | Behaviors composed by agents | Unstyled components | Hooks and components | Unstyled components | Components on Zag.js state machines |
| Frameworks | React, Vue, Svelte, Solid, Web Components | React | React | React | React, Vue, Solid, Svelte |
| License | Apache-2.0 | MIT | Apache-2.0 | MIT | MIT |
| Latest npm version | 0.1.0-beta.1 | 1.8.1 | 1.22.1 | 1.9.0 | 5.40.0 |
| React peer range | 19+ | 16.8 to 19 | 16.8 to 19 | 17 to 19 | 18+ |
| Agent skill and runtime bridge | Yes (skill, llms.txt, createAgent, WebMCP) | Not disclosed | Not disclosed | Not disclosed | Not disclosed |
Versions and peer ranges are from npm as of November 13, 2026. React Aria hooks and Ark UI’s Zag.js machines already separate behavior from markup. UI SDK’s difference is the agent layer: a skill, bundled llms.txt and a runtime bridge
Key Takeaways
- 50+ behaviors, 1 core, 5 framework adapters.
- Agents compose components from behaviors, not templates.
createAgentlets agents act on UI state without screenshots.- Self-reported: 61% faster and 56% cheaper on 1 task.
- Beta at 0.1.0-beta.1, with React 19 as the minimum.
Check out the GitHub repo, docs and npm package. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
The post Vercel Releases UI SDK: 50+ UI Behaviors for AI Coding Agents appeared first on MarkTechPost.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 MarkTechPost(Vercel Releases UI SDK: 50+ UI Behaviors for AI Coding Agents),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。