Vercel's UI SDK lets AI agents build components, not just call them

The open-source beta library ships 50-plus interface behaviors across React, Vue, Svelte, Solid and Web Components for coding agents to assemble into accessible UI.

AIVIO News Desk 2 min read
AIVIO News cover illustration for: Vercel's UI SDK lets AI agents build components, not just call them

Vercel Labs released UI SDK, an open-source beta library that hands AI coding agents raw interface behaviors instead of finished components, MarkTechPost reports. The project published six npm packages at version 0.1.0-beta.1 on November 12, under the Apache-2.0 license.

Rather than shipping a pre-built dropdown or date picker, UI SDK gives agents pieces like keyboard navigation, focus handling, selection logic, drag and drop, and the accessibility markup those need. All of it lives in a core package called @ui-sdk/core, with thin adapters rendering the same behavior across React, Vue, Svelte, Solid and plain Web Components. Vercel’s project site frames this with a select menu: instead of handing an agent a finished Select, developers give it a popup, a selection model and a typeahead search, which an agent can then recombine into an autocomplete, a combobox, or something unplanned.

Components start as primitives, declared with a function called definePrimitive that sets state, an API and slots for attributes, events and behaviors. A framework-specific renderer then turns that primitive into working UI, and according to the documentation, the underlying parts stay identical across all five adapters, so a single behavior definition can serve both a React app and a Svelte app. The library groups its behaviors into ten categories spanning focus and keyboard handling to canvas work, with prebuilt examples including a Select, Combobox, Date Picker, Menu, Tree and Color Picker.

Vercel also built a runtime bridge, created with a function called createAgent, that lets an agent inspect a page’s components and their state before acting on them, rather than relying on screenshots. The agent can then trigger actions directly, such as renaming a project, and developers can approve or block those actions through callback functions. In a benchmark Vercel ran itself, an agent using this bridge completed a project-settings task in a median of 16 seconds versus 41 seconds for an agent using browser tools, a 61% drop, while using 69% fewer tool calls, based on three runs of one task.

What this means

UI SDK’s bet is that separating behavior from markup, something React Aria Components and Ark UI already do through hooks and state machines, matters most once agents are the ones assembling interfaces. Vercel’s comparison table shows its peer requirements are stricter than rivals, demanding React 19 or newer, which could limit adoption among teams on older codebases.

The performance numbers Vercel reports are self-measured and come from a single task run three times, with the comparison benchmark using a different component library entirely. Whether the speed gains hold across more varied tasks, and whether the beta APIs stay stable as adoption grows, remains untested outside Vercel’s own lab.

Sources

MarkTechPost