Get in touch
Gabs
Blog

Is Vercel's UI SDK ready to replace Radix or Base UI?

Not yet. It's a beta, and in Vercel's own test its components took an agent the same 17 tool calls as Base UI. Its agent bridge took 7.

Gabriel EspinheiraSenior Full-Stack Engineer
  • Published
  • 9 minReading time
  • EngineeringCategory

Vercel tested its new UI SDK by giving a coding agent one settings screen to operate. With ordinary browser tools the agent made 17 tool calls on the Base UI version (opens in a new tab). On the UI SDK version it also made 17. The count dropped to 7 only when the agent stopped clicking and used the tools UI SDK puts on the page. One developer asked after launch what the "value prop of this versus something like Base UI" (opens in a new tab) is, and that result answers a lot of it. For the rest I ran one keyboard and accessibility check on the Select demos of UI SDK, Base UI and Radix, and the Select gave me no reason to move.

TL;DR: No, Vercel's UI SDK isn't ready to replace Radix or Base UI. It's a beta that asks for React 19, and its Select behaved like Base UI's in my check. Keep the library you have. Try UI SDK on one screen that agents have to operate, where Vercel's own benchmark cut the tool calls from 17 to 7.

Is Vercel's UI SDK ready to replace Radix or Base UI?

Vercel's UI SDK is still moving too fast to sit under a product you already ship. npm lists 14 versions (opens in a new tab) of its React package from beta.1 on 12 November to beta.16 on 23 November (11 and 15 were never published), and the latest tag points at that beta. The README (opens in a new tab) says the APIs and behavior "may change before general availability". Here is where the three stood on 24 November:

UI SDKBase UIRadix (radix-ui)
Version0.1.0-beta.161.9.01.8.1
React it accepts19 or newer17, 18, 1916.8 to 19
FrameworksReact, Vue, Svelte, Solid, Web ComponentsReactReact
npm downloads, 17 to 23 November721,58732.0 million29.2 million

On React 18, UI SDK isn't an option today. On React 19 the issue tracker won't decide it for you: UI SDK had 140 open issues that day, Radix 145 and Base UI 349. Read what's in them instead. One of UI SDK's reports (opens in a new tab) that a modal dialog stays clickable while a second modal sits on top of it, which is the sort of bug you adopt a headless library to avoid.

What does UI SDK do differently from Base UI and Radix?

UI SDK gives you behaviors, one layer below the component parts you get from Base UI and Radix. It also ships more than 50 ready components built from those behaviors, and those are what I compared below. The layer underneath is what's new: createPopup, createSelection and createTypeahead make a Select, and the same three make an autocomplete or something no library has named yet. This is the popover from the launch post (opens in a new tab):

const share = definePrimitive({
  name: "share",
  options: { defaultOpen: "boolean" },
  state: (options: { defaultOpen?: boolean }) => popupState(options),
  api: (context) => createPopup(context, { preset: popoverPreset }),
  slots: (slot) => ({
    trigger: popupTrigger(slot),
    content: popupContent(slot),
  }),
})

createPopup opens the content next to its button, closes it on Escape or a click outside and puts focus back. The two slots say which elements are the button and the content, and one call per framework turns the definition into React, Vue, Svelte, Solid or Web Components.

The launch post says you don't have to learn to write this, because agents were taught to. That leaves out who maintains it. When a library's Select breaks on a phone you don't own, its maintainers fix it. When the Select is one your agent assembled, you do. A commenter on r/webdev (opens in a new tab) named the cost: focus and dismissal are so tightly coupled that splitting them too far "just moves the complexity into glue code".

Do UI SDK components behave better than Base UI or Radix?

UI SDK's Select did the same job as Base UI's in every check I ran. I drove the first Select demo on each docs site with the same Playwright script, in Chromium, and ran axe on the trigger and the open list:

CheckUI SDKBase UIRadix
Arrow Down, Enter and Space open itYesYesYes
Escape closes it and focus returnsYesYesYes
Arrows, Home and End move the focusYesYesYes
Typing a letter jumps to a matchYesYesYes
Enter picks and focus returnsYesYesYes
Tab with the list openCloses, moves onCloses, moves onStays in the list
axe violations, closed and open000

The only difference was Tab, and there UI SDK and Base UI agree with each other. I checked one component in one browser without a screen reader, so run it on the parts you rely on.

Size is no reason to switch either. Bundled whole with bundlejs (opens in a new tab), React left out, UI SDK's Select came to 64.2 KB gzipped and Base UI's to 45.5 KB. UI SDK loads some of that on demand, and its own size budget (opens in a new tab) puts 47.6 KB up front, close to Base UI's total. Radix failed to bundle there, so it has no figure.

Where does UI SDK beat Base UI?

UI SDK wins when an agent is the one using your interface. It calls this the agent bridge: createAgent gives an agent three calls, snapshot, query and act, so it reads a component's state and sets a value without hunting through the page. Vercel's benchmark asked Claude Sonnet, through Claude Code, to rename a project, change roles, remove a member and save:

React screenTool callsCharacters readTimeCost
Base UI, browser tools1741.0k53 s$0.139
UI SDK, browser tools1741.3k56 s$0.140
UI SDK, agent tools77.0k31 s$0.044

The first two rows are level, so swapping the component library bought nothing here. All of the gain comes from the bridge, at under a third of the cost. It's Vercel's own test from 15 November, one task with a median of three runs, and one row is missing: Base UI with a few hand-written tools. A page can register its own tools through WebMCP, a browser API for handing tools to an agent, which is also how UI SDK exposes the bridge to a browser's built-in agent (opens in a new tab). If agents only ever need to do three things in your app, write those three tools on the components you have. The bridge pays off when an agent needs the whole screen.

Write the permissions before you switch it on. Without an allow callback, the bridge accepts every supported action (opens in a new tab). This one, from the docs, lets an agent change a single select:

import { createAgent } from "@ui-sdk/react/agent"

const agent = createAgent({
  allow: ({ component, label, action }) =>
    component === "select" && label === "Region" && action === "setValue",
})

Then test the saves. My rule is that agents use the same API you do, and UI SDK's docs promise as much: an agent's change reaches the same callbacks as a person's. Fifteen open issues name the agent in their title, and one of them (opens in a new tab) breaks that promise. An agent moves a slider, gets ok: true back, and the onValueCommit callback that saves the value never runs. A second user reproduced it on beta.16.

Should you build your next component on UI SDK?

Build on UI SDK only when the component is worth owning or an agent is the user. I'd decide by the row that describes you:

Your situationWhat I'd do
An app that works on Radix or Base UIStay. The swap alone bought nothing in either test
React 18 or olderStay. UI SDK asks for React 19
A new app that needs stable partsBase UI or Radix
A component no library has, like a timeline editorTry UI SDK's behaviors and own the tests
The same component in React and SvelteTry UI SDK, pinned to one beta
Agents need three actions in your appWrite three tools on what you have
Agents operate a whole screenTry UI SDK's bridge on that screen

Whichever row you're in, write what the keyboard has to do as a test before you touch the library. It's the spec an agent has to meet when it builds the replacement. This is the start of mine:

test("the Role select keeps its keyboard contract", async ({ page }) => {
  await page.goto("/settings");
  const trigger = page.getByRole("combobox", { name: "Role" });

  await trigger.focus();
  await page.keyboard.press("Enter");
  await expect(page.getByRole("listbox")).toBeVisible();

  await page.keyboard.press("Escape");
  await expect(page.getByRole("listbox")).toBeHidden();
  await expect(trigger).toBeFocused();

  await page.keyboard.press("Enter");
  await page.keyboard.press("a");
  await page.keyboard.press("Enter");
  await expect(trigger).toHaveText("Admin");
  await expect(trigger).toBeFocused();
});

It finds the select by role and name, so it doesn't care which library is underneath. With the label and values swapped, the same steps passed on all three docs sites. Add Tab next, because that is where the three differ.

Frequently asked questions

Is UI SDK the same as Vercel's AI SDK?

No. The AI SDK connects your app to language models and streams their answers. UI SDK is a separate package for interface behavior: focus, keyboard navigation, popups, selection and the ARIA attributes they need. You can use either one without the other, and UI SDK works in an app that has no AI feature.

Will shadcn/ui move to UI SDK?

Vercel hasn't said so. shadcn announced UI SDK on X, but InfoQ noted (opens in a new tab) on 18 November that Vercel had not said whether shadcn/ui will be rebuilt on it. The components you already copied into your repo keep running on Radix or Base UI, so a move would be your choice.

Do you need a coding agent to use UI SDK?

No. The ready components import like any other library's, for example Select from @ui-sdk/react/select, and you bring the styles. An agent helps when you build something from the behaviors underneath, where the docs ship inside the package for it to read. The agent bridge is optional too, and nothing runs until you call createAgent.

What to do next

Pick the one screen in your product an agent would use most, and count the tool calls it takes today with browser tools. If it's a handful, keep your library. If it's large, rebuild that screen with UI SDK in a branch, pin the exact beta, write the allow callback, and count again. The 17 and the 7 belong to Vercel's screen, so go by yours. For the components alone, look again when latest points at a version without beta in its name.

More posts like this are on the gabs.app blog. I'm a senior full-stack engineer and my work is on gabs.app; if you're hiring, the contact form comes straight to me.