UI SDK
A library of UI behaviors that AI agents compose into components for React, Vue, Svelte, Solid and Web Components.
At a Glance
About UI SDK
UI SDK is a library from Vercel Labs that packages the interaction logic of user interfaces, such as popups, lists, selection and typeahead, into reusable behaviors that coding agents assemble into components. It works with React, Vue, Svelte, Solid and Web Components. The project is in beta and released under the Apache 2.0 license.
What It Is
UI SDK is a headless behavior library, published as @ui-sdk/core with adapters for each supported framework. Instead of handing an agent a finished Select component, it provides the underlying pieces: keyboard navigation, focus, selection, dismissal, popups, drag and drop, and the ARIA attributes they need. Agents combine these to build a select, an autocomplete, a combobox or a component that does not yet exist. The site lists more than 50 behaviors, including createPopup, createSelection, createTypeahead, createRovingFocus, createReorder, createResize, createViewport and createVirtualizer.
How Components Get Built
A component starts as a primitive defined with definePrimitive, which wires behaviors together and declares slots. It is then rendered in a chosen framework with createParts, using the same parts across React, Vue, Svelte, Solid and Web Components. The docs say a developer asks an agent for a component, and the agent picks the behaviors and writes the primitive. The project also ships a component library, including Select, Combobox, Tabs, Date Picker, Menu, Field, Command, Calendar, Slider and Tree, all built from the same behaviors.
Working with Agents
The quick start is a prompt that installs the packages, adds a note to AGENTS.md and installs the UI SDK skill with npx skills@latest add vercel-labs/ui --skill ui-sdk. The docs also cover building with an agent, connecting an agent so it can read components and call their actions, and WebMCP for browser-built-in agents. The homepage states that agents operate the controls directly without screenshots, and claims this is more than twice as fast at less than half the cost.
Current Status
The README states UI SDK is in beta and subject to the Vercel beta terms. It says the framework, APIs, documentation and behavior may change before general availability.
Community Discussions
Be the first to start a conversation about UI SDK
Share your experience with UI SDK, ask questions, or help others learn from your insights.
Pricing
Open Source
UI SDK core library and framework adapters released under the Apache License 2.0. Currently in beta.
- Apache License 2.0 (Apache-2.0)
- 50+ behaviors in @ui-sdk/core
- Adapters for React, Vue, Svelte, Solid and Web Components
- Component library
- UI SDK skill for agents
Capabilities
Key Features
- Reusable behaviors for focus, keyboard navigation, selection, popups, typeahead, drag and drop, and ARIA
- 50+ behaviors exposed through @ui-sdk/core
- Adapters for React, Vue, Svelte, Solid and Web Components
- definePrimitive and createParts for composing and rendering custom components
- Starter component library including Select, Combobox, Tabs, Date Picker, Menu and Command
- UI SDK skill for coding agents
- Agent connection and WebMCP support so agents can read and operate components
