AI
Vercel Launches UI SDK: Composable Behaviors for Agent-Friendly Components
An open-source TypeScript library treats UI interactions as reusable building blocks that agents and developers can combine, with built-in support for cross-framework rendering and agent control.
InfoQ
Vercel has unveiled UI SDK, an open-source TypeScript framework that reimagines interactive components as composable behaviors. Rather than embedding keyboard navigation, focus management, drag-and-drop, and popup logic inside finished components, UI SDK extracts these interaction patterns as standalone, reusable primitives that developers—and AI agents—can mix and match to build custom interfaces.
A New Layer Below Components#
The library occupies a distinctive position in the UI toolkit landscape. While libraries like Radix UI, Base UI, React Aria, and Headless UI provide headless component logic, and tools like shadcn/ui offer copy-and-customize component kits, UI SDK works at a lower abstraction—offering granular behaviors that can be combined to assemble components from the ground up. The core library ships with more than 50 pre-built behaviors including selection management, typeahead logic, focus rotation, resizing, virtualization, and popup handling.
Building Blocks for Any Framework#
Developers use definePrimitive to declare a component's state, API, and content slots once. Framework adapters then render that definition through React, Vue, Svelte, Solid, or as Web Components—all sharing the same underlying behavior logic. The SDK also includes a starter library of over 50 unstyled components (calendar, tree, token input, color picker, and more) built from these behaviors. Parts are unstyled and expose CSS variables and attributes for styling flexibility.
First-Class Agent Integration#
What sets UI SDK apart is its native bridge for AI agents. The createAgent function lets agents read component state and invoke actions through the component API without relying on screenshots or DOM parsing. Developers can track whether a change originated from an agent via a source flag and even reject agent actions. Browser-based agents can connect through the registerTools method using WebMCP, turning UI components into controllable tools for autonomous systems. An points agents to the library's documentation, letting them understand and use components autonomously.

