Vercel Labs has released UI SDK 0.1.0-beta.1, an open-source, headless library of 50-plus composable UI behaviors — such as createRovingFocus, createTypeahead, createPopup, createSelection, createReorder, and createVirtualizer — organized into 51 component modules across six npm packages under Apache-2.0. Rather than shipping finished components, UI SDK provides primitives defined via definePrimitive that declare state, APIs, and slots; agents assemble these behaviors into accessible components for React 19+, Vue 3.5+, Svelte 5.33+, Solid 2 RC, and Web Components using thin, framework-specific adapters (createParts) that share identical behavior definitions. Prebuilt examples include Select, Combobox, Date Picker, Menu, Tree, and Color Picker. Agents consume the SDK through a skill installed via npx skills add vercel-labs/ui --skill ui-sdk, which adds llms.txt documentation and an AGENTS.md note. A runtime bridge (createAgent) exposes agent.snapshot() for component state and actions, and agent.act() for mutations like setValue, with allow and change callbacks for governance; WebMCP registration is also supported. In a self-reported benchmark of one project-settings task (three runs, Sonnet via Claude Code), the agent bridge reduced tool calls by 69% (16 to 5), text read by 83% (39.8k to 6.8k chars), task time by 61% (41 s to 16 s), and cost by 56% ($0.073 to $0.032) versus browser tools using a different component library; Vercel characterizes these figures as directional given the single-task sample and beta APIs. Peer requirements are strict per framework, and an optional web.css provides default styling.
Read original
marktechpost