Composing Agent-Ready Interfaces With Vercel UI SDK
Vercel UI SDK separates reusable UI behaviors from rendering and adds an agent bridge; I'd trial its approval boundaries before replacing existing primitives.
- Topic
- AI
- Reading time
- 6 min
- Length
- 1,403 words
- Published
- Nov 18, 2026
11:18 pm IST
In this article
- Behaviors become the unit of composition
- What does the agent bridge actually change?
- Where this sits beside existing headless libraries
- Trialing UI SDK in an existing React application
- Check the React requirement before installing
- Give the coding agent the package documentation
- Write the approval rules before exposing actions
- Beta APIs and authorization remain separate concerns
Vercel UI SDK is a new open-source TypeScript library that breaks keyboard navigation, focus, selection, popups, and drag and drop into reusable behaviors. Agents also get a direct way to inspect and operate components, without screenshots. It's currently in beta. What interests me is the pairing of those two ideas: composable interaction logic beneath the UI, and an explicit interface for agents alongside the one people use.
The UI SDK release comes with framework adapters and an unstyled component library. I wouldn't start by replacing a design system that already exists. I'd pick one contained interaction and use it to find out whether the behavior model and agent controls earn their place as another dependency in the application.
Behaviors become the unit of composition
The behaviors live in @ui-sdk/core. Vercel has built more than 50 of them, including createPopup, createSelection, createTypeahead, createRovingFocus, and createFocusRecovery. They come together inside definePrimitive, where a component's state, API, and slots are declared once. That's the definition the framework adapters work from.
Those adapters render the primitive through createParts, with support for React, Vue, Svelte, Solid, and Web Components. The rendered parts have no styles of their own; they expose attributes and CSS variables. There is also a starter library of more than 50 unstyled components, including Command, Calendar, Tree, and Token Input. The part names stay the same across the adapters.
I read this as an attempt to put the reusable boundary below the finished component. Selection and focus behavior are building blocks in their own right, rather than things I can only get by starting with a complete selection widget. That sounds useful to me when a product needs an interaction that won't fit comfortably into the shape of an existing component.
For a newsroom editorial tool, though, I'd weigh that flexibility against the cost of owning the composition. Can I still understand a custom content-selection interaction after its selection, popup, and focus behavior have been combined? That's what I'd want to check. More building blocks don't automatically give me less maintenance, even if they give me more ways to assemble the interaction.
What does the agent bridge actually change?
UI SDK supports agents in two places: during development and at runtime. The ui-sdk skill directs a coding agent to Markdown documentation shipped inside the installed packages. Runtime access is separate. Imported from the matching framework package, createAgent exposes snapshot, act, and query, letting an agent inspect component state and invoke actions through the component API.
I'd investigate that runtime interface first. An agent can work against the actual component interface instead of screenshots, but the application can still approve or refuse steps. Change callbacks identify changes originating from an agent with a source of "agent", and those callbacks may cancel a change. That last part matters to how I'd use it.
In an AI-assisted editorial workflow, I want suggesting a selection and accepting that selection to remain visibly different decisions. I'd prefer an agent to prepare the interaction while the application retains control over consequential approval. The refusal hooks are there in the SDK. Deciding which actions to allow through them would still be my job, not something the hooks settle for me.
registerTools can expose the same methods through WebMCP to a browser's built-in agent, provided the browser has document.modelContext. I'd take that condition literally. I wouldn't design as though browser support were universal. This raises the same concern for me as centralizing MCP tool access: an action being available and an action being authorized need an explicit boundary between them.
Where this sits beside existing headless libraries
The headless-component layer isn't empty. Radix UI, Base UI, React Aria, Ark UI with its Zag.js state machines, and Headless UI are already there. shadcn/ui sits above those primitives as a component kit copied into an application's repository. UI SDK's target is composable behaviors shared across frameworks, with a first-class agent bridge added alongside them.
Component counts wouldn't decide this for me. If an application just needs an unstyled widget, my first question is whether the library it already uses meets that need. I'd become more interested in the new abstraction when I actually needed to compose custom behavior, or when I wanted deliberate agent access to the actions a component exposes. Those are different requirements from needing another widget.
I might also evaluate it for cross-framework sharing, but I'd be careful about what that promises. Shared primitives and consistent part names don't establish that an application's entire integration will be identical across frameworks. There's another assumption I wouldn't make: Vercel has not announced that shadcn/ui will be rebuilt on UI SDK. I wouldn't put a migration on the schedule on that basis.
Trialing UI SDK in an existing React application
I'd open a disposable branch and choose a bounded interaction. No design-system rewrite. My candidate would be a selection popup in an internal editorial tool, with enough going on to exercise focus and agent actions but kept separate from a final publishing decision. That gives the trial something meaningful to test without making publishing itself part of the experiment.
Check the React requirement before installing
The React adapter requires React 19 or later, so that's the first compatibility check I'd make. The documented installation includes the framework adapter as well as the core package:
npm install @ui-sdk/react @ui-sdk/core
If the application doesn't meet that requirement, I'd evaluate the SDK outside the application. I wouldn't attach a React upgrade to this experiment just to get started. Whether the framework version is compatible and whether behavior composition is worth adopting are separate decisions, and I'd want to keep them that way during the trial.
Give the coding agent the package documentation
To install the documented skill, the command is:
npx skills add vercel-labs/ui --skill ui-sdk
I'd use that route to the documentation rather than have an agent guess at a beta API it doesn't know. Then I'd inspect the generated code before accepting it: which behaviors were composed, where the state lives, and which actions the component API makes visible. Getting code generated successfully wouldn't convince me that the resulting interaction was ready to use.
Write the approval rules before exposing actions
I'd keep inspection and mutation separate on the evaluation checklist. First I'd decide what state an agent may inspect, what changes it may request, and where the application must refuse those requests. Then I'd exercise accepted changes and canceled ones. In both cases, I'd check the resulting UI state against the decision the application actually made.
The same interaction would also need a keyboard test, including what happens to focus after an agent change is refused. An agent managing to invoke an action isn't my acceptance criterion; a coherent human workflow is. I'd give the test harness the same constraint as a replay-safe boundary and keep the experiment away from consequential production effects.
Beta APIs and authorization remain separate concerns
The current release is 0.1.0-beta.1. It's licensed under Apache License 2.0 and subject to Vercel's public beta terms, with APIs, documentation, and behavior all subject to change before general availability. For me, that's reason enough to favor an isolated trial. I wouldn't make this release the foundation of a production-wide component migration.
Responsibility is the bigger concern for me, though. A callback identifying an agent-originated change gives the application useful input for an approval decision. It isn't the approval policy. I'd still define permissions and confirmation requirements in the application, and for a consequential workflow I'd follow the requested action all the way to its eventual effect. My review wouldn't stop because the action had crossed the component boundary.
There's visual work to account for, too: unstyled parts leave that integration to the application. I'd budget for it explicitly rather than treat the starter library as a finished design system. I'd also want evidence from my own trial before claiming better performance, less maintenance, or more reliable agent task completion. Those are things I'd be trying to establish, not outcomes already established here.
If an existing interface works well and doesn't need agent-operated components, I'd leave it alone. I'd trial UI SDK where direct agent interaction is already a product need, not just to get another collection of widgets. What looks promising to me is making UI actions explicit enough to compose, inspect, and refuse. Before adopting the abstraction, I'd take that selection popup and test that contract, including the actions the application must refuse.
Sources
Vercel Releases UI SDK for Agents to Compose UI from Reusable Behaviors
This is the source this article is based on. Many articles on this blog are drafted with AI and checked against their source automatically; the editorial policy explains how, and how to report a mistake.
Frequently asked
Is Vercel UI SDK ready for a production-wide migration?
It is currently 0.1.0-beta.1, and its APIs, documentation, and behavior may change before general availability. I'd evaluate a bounded interaction before committing an existing design system to it.
Does the React adapter require a React upgrade?
The React adapter requires React 19 or later. If an application runs an earlier version, I'd keep the SDK evaluation separate from deciding whether to upgrade React.
Will shadcn/ui be rebuilt on UI SDK?
Vercel has not announced whether shadcn/ui will be rebuilt on UI SDK. I would not base migration planning on that possibility.
Can an application refuse an agent's UI changes?
Yes. Applications can approve or refuse agent steps, and change callbacks identify agent-originated changes and may cancel them. I'd use those controls within an application-defined approval policy.
Weekly newsletter
Liked this? Get the next one by email
One short email a week with new articles on React, Node.js, TypeScript and AI engineering. No spam. Unsubscribe in one click.
Further reading
Related tutorials from ByteMuni, my developer publication.
- AI & Machine LearningAgent Harness vs MCP: How the AI Agent Stack Fits Together An agent harness runs the loop; MCP is the standard plug it uses to reach tools and data. This explainer maps all seven layers of the AI agent stack and traces one real request through each.
- Cyber SecurityWhen an AI Agent Goes Wrong, Can You Stop It? The AI Agent Kill Switch ExplainedIf an AI agent goes rogue, can you actually stop it? Yes, but not by asking it to stop or turning off the model. Using recent real incidents and a ByteMuni simulation that measures what keeps leaking after eight different meanings of "stop", this guide explains how to build and use an AI agent kill switch, with a five-step containment runbook and a readiness checklist.
- Cyber SecurityCVE-2026-111497 on Vercel and Next.js: What the Brotli Bug Means for Your App The Next.js Brotli vulnerability (CVE-2026-111497) explained for Vercel users: what Vercel patched, Node 20 fixes, self-hosting, and image optimization.