Skip to content

Vercel UI SDK tested: what it adds for agent-built interfaces, and what it costs

Mykhailo Poliarush9 min read

Vercel UI SDK is a beta, Apache-2.0 library of 50+ UI behaviors (focus, keyboard, popups, ARIA) that coding agents combine into components. In one independent test it took about 5 times as long and cost 3.5 to 6.3 times as much as the plain model, with scores within one check. Its distinct value: agents can read and drive the UI.

What is Vercel UI SDK?

Vercel UI SDK (the project calls it "UI SDK") is a TypeScript library from Vercel Labs for building and driving user interfaces with agents. The UI SDK docs describe it as a library of behaviors, such as popups, lists and typeahead, that your agent puts together into components. The GitHub repo was created on 2026-10-26 and the launch post is dated 2026-11-12.

It ships as @ui-sdk/core plus adapters for React, Vue, Svelte, Solid and Web Components. The latest version on npm on 2026-11-25 was 0.1.0-beta.17, and the docs warn that some APIs may still change.

Why behaviors instead of components?

A component library hands an agent a finished Select. UI SDK hands it the parts a Select is made of: createPopup for opening and dismissing, createSelection for choosing, createTypeahead for finding an option by typing. With those, the UI SDK homepage says, the agent can build a select, an autocomplete, a combobox or even a new component the makers haven't thought of yet.

The behaviors carry the hard, easy-to-miss work: keyboard navigation, focus, selection, drag and drop, and the ARIA attributes those interactions need. It also ships a component library built from the same behaviors, and a skill that teaches the agent the workflow.

How does an agent use UI SDK?

The docs describe two directions.

Agents build components. You install the packages, add a note to AGENTS.md, and install the skill with npx skills@latest add vercel-labs/ui --skill ui-sdk. The skill guides the agent through reading the installed docs, choosing behaviors, defining a primitive, rendering it and testing it (UI SDK skills docs). Each package includes Markdown docs that match the installed version.

Agents use components. createAgent creates a bridge. agent.snapshot() lists components, their state and their actions, and agent.act() calls an action such as setValue (agents docs). The registerTools function exposes snapshot, query and act to a browser that supports WebMCP. Your app can set an allow callback to approve or refuse each step, including waiting for a person to confirm (WebMCP docs).

We read these parts in the docs. We did not run the bridge or WebMCP in our test below.

What did an independent test find?

The most useful counterpoint to the vendor's claims we found is a head-to-head by the video creator Kristian. In the test repo README (MIT, created 2026-11-17), the same model, Claude Opus 5.5 in Claude Code, built the same component twice from the same Vite and React starter. The only prompt difference was one line, "Use UI SDK (already installed).", plus the UI SDK skill. A black-box Playwright and axe-core script checked each build in a real browser. The video was published on 2026-11-16.

Independent test: Claude alone vs Claude with UI SDK

Independent test: Claude alone vs Claude with UI SDK
TestClaude aloneClaude + UI SDK
@mention chat box14/15 checks, 2.5 min, $0.8813/15 checks, 12.8 min, $3.08
Floating equalizer window18/19 checks, 1.4 min, $0.4619/19 checks, 7.6 min, $2.92

Source: Kristian, ui-sdk-tests README (one build per side, 2026-11)

In both tests the two builds landed within one check of each other. Plain Claude scored higher on the @mention chat box (14 against 13 of 15) and lower on the equalizer window (18 against 19 of 19). The cost was different. By our arithmetic from the README figures, UI SDK took about 5 times as long in both tests (12.8 against 2.5 minutes, 7.6 against 1.4) and cost 3.5 times as much in test 1 and 6.3 times as much in test 2.

The UI SDK builds also wrote their own tests, which the plain builds did not. The video description says 11 tests in test 1 and 20 in test 2, and that the agent broke its own app on purpose to prove the tests catch it. That is extra work you pay for, and extra proof you get.

The creator's own caveats matter. The README calls it "Two data points, not a benchmark": one component per test, one build per side, and UI SDK is in beta. The description adds that the agent bridge, history and WebMCP parts are marked experimental. Treat this as one careful anecdote, not a verdict.

What does the vendor's own benchmark show?

The UI SDK agents docs report a different kind of test. An agent had one task on a project settings screen: rename the project, change its visibility, update two members and the notification settings, then save. On other libraries it used browser tools. On UI SDK it used the agent bridge.

Vendor benchmark, React: browser tools vs agent bridge

Vendor benchmark, React: browser tools vs agent bridge
MetricBase UI + browser toolsArk UI + browser toolsUI SDK + agent bridge
Tool calls17192
Tokens291.1k330.3k21.8k
Time56 s58 s13 s
Cost$0.138$0.143$0.021

Source: UI SDK docs, agents benchmark (vendor; medians of 3 runs, one task)

This is a vendor benchmark: medians of three runs, one task, Sonnet through Claude Code, and every run completed the task. It compares driving a finished screen, not building a component. The other libraries in the test were Base UI, Ark UI, Reka UI and Bits UI, so it says nothing about React Aria, Radix or Headless UI.

Put the two tests together and a pattern appears. The vendor measures how cheaply an agent can operate a UI. The independent test measures how cheaply an agent can build one. UI SDK looks strongest on the first, which is also where the docs put their emphasis.

How does UI SDK compare with React Aria, Radix UI and Headless UI?

LibraryFrameworksWhat you getAgent toolingLicenseMaturity
UI SDKReact, Vue, Svelte, Solid, Web Components50+ behaviors, plus components built from themSkill, agent bridge, WebMCP toolsApache-2.0Beta, 0.1.0-beta.17, repo created 2026-10-26
React AriaReactUnstyled components and hooksMCP server and Agent SkillsApache-2.0react-aria-components 1.22.1, repo created 2019
Radix PrimitivesReactUnstyled primitives such as Dialog, Dropdown Menu, Select and TabsNone documented on the pages we openedMITradix-ui 1.8.1, repo created 2020
Headless UIReact, VueUnstyled components for Tailwind CSSNone documented on the pages we openedMIT@headlessui/react 2.2.10, repo created 2020

Two points stand out. React Aria is the closest peer on agent tooling, because it also ships an MCP server and a skill. And UI SDK is the youngest by years: the other three have long release histories, while UI SDK is weeks old and still changing.

Does UI SDK work as documented? We built a listbox

We tested it on 2026-11-25 with @ui-sdk/react and @ui-sdk/core 0.1.0-beta.17, React 19, Vite, Playwright 1.65.1 and Chrome. The install worked as documented:

npm install react react-dom @ui-sdk/react @ui-sdk/core

We built a three-option listbox from behaviors, not from the shipped components. The WAI-ARIA Authoring Practices say type-ahead is recommended for all listboxes, and the keyboard guidance describes a roving tabindex: one element has tabindex="0" and the rest have -1. So the listbox needs roving focus, type-ahead and a change report:

import {
  createChange,
  createRovingFocus,
  createTypeahead,
  definePrimitive,
  isTypeaheadKey,
} from "@ui-sdk/core"

export const teamPicker = definePrimitive({
  name: "team-picker",
  state: () => ({
    focused: null as string | null,
    value: null as string | null,
  }),
  api: (context) => {
    const change = createChange(context)
    const typeahead = createTypeahead()
    const roving = createRovingFocus(context, {
      slot: "option",
      key: "focused",
      claims: (state, option) => option.key === (state.value ?? "Ada Lovelace"),
    })
    return {
      roving,
      choose: (key: string, event?: Event) =>
        change("value", key, { reason: "item-press", event }),
      keydown(event: KeyboardEvent, el: HTMLElement, key: string) {
        if (event.key === "Enter" || event.key === " ") {
          event.preventDefault()
          return this.choose(key, event)
        }
        if (roving.keydown(event, el) || !isTypeaheadKey(event)) return
        const items = roving.items()
        const index = typeahead(
          event.key,
          items.map((item) => item.el.textContent ?? ""),
          items.findIndex((item) => item.el === el)
        )
        if (index !== -1) roving.focus(items[index].key)
      },
    }
  },
  slots: (slot) => ({
    root: slot({
      role: "listbox",
      keys: { none: "The options handle them." },
      attrs: () => ({ "aria-label": "Assign to" }),
    }),
    option: slot<{ value: string }>({
      role: "option",
      focus: "roving",
      props: { value: "string" },
      attrs: (state, part) => ({
        tabindex: part.api.roving.tabIndex(state, part),
        "aria-selected": String(state.value === part.key),
      }),
      press: ({ key, api }, event) => api.choose(key, event),
      on: {
        keydown: (event, { el, key, api }) => {
          if (el) api.keydown(event, el, key)
        },
      },
      bind: (el, part) => part.api.roving.bind(el, part),
    }),
  }),
})

Then a Playwright test checks keyboard use, focus and ARIA in a real browser. The last test calls UI SDK's own checkPattern helper from @ui-sdk/core/testing, which checks roles, names, states and keyboard interactions for a listed pattern, including listbox:

test("has one Tab stop and moves with arrow keys, Home and End", async ({ page }) => {
  const options = page.getByRole("option")
  await page.keyboard.press("Tab")
  await expect(options.first()).toBeFocused()
  await page.keyboard.press("ArrowDown")
  await expect(options.nth(1)).toBeFocused()
  await page.keyboard.press("End")
  await expect(options.nth(2)).toBeFocused()
  await page.keyboard.press("Home")
  await expect(options.first()).toBeFocused()
  await page.keyboard.press("Tab") // Tab leaves the list
  await expect(page.locator('[role="option"]:focus')).toHaveCount(0)
})

test("passes the UI SDK listbox pattern check", async ({ page }) => {
  const result = await page.evaluate(async () => {
    try {
      await (window as any).checkListbox() // wraps checkPattern(root, "listbox")
      return "ok"
    } catch (e) {
      return String(e)
    }
  })
  expect(result).toBe("ok")
})

We ran it with npx playwright test --reporter=list. All five tests passed (roles and name; one Tab stop with arrows, Home and End; type-ahead; Enter selection; pattern check) in 31 seconds.

It did not pass on the first try, and that is the useful part. These are our observations, not library bugs, because some may be our wiring:

  • No Tab stop. Our first version used createListbox with real focus and left every option at tabindex="-1". Keyboard users could not reach the list. Adding createRovingFocus fixed it.
  • Enter did nothing on a div. The docs say Enter and Space reach press on a native button. Our options were divs, so we handled those keys ourselves.
  • The pattern check caught a gap. checkPattern reported that typing "a" should move focus to the option starting with "a". We had not added type-ahead.

Types helped too: TypeScript refused to compile an option without focus, and a listbox root without keys. That is a real guard against an agent forgetting an ARIA requirement.

How should you check what an agent built?

Do not trust a component because it looks right or because the vendor says it is faster. In the WebAIM Million 2026 scan, 95.9% of the top one million home pages had detected WCAG failures. Home pages with ARIA present averaged 59.1 errors against 42 for pages without it, so adding ARIA is not the same as better accessibility. We cover the accessibility data in product design challenges.

A short checklist for agent-written UI:

  1. Tab in, arrow around, Tab out. Assert one Tab stop and no focus trap.
  2. Assert roles and names, not CSS classes.
  3. Run an axe scan on every page state, then test by hand with a screen reader on key flows.
  4. Run the tests in CI and block merges on failure.
  5. Review the code, including tests the agent wrote for itself. Our AI agent testing guide covers how to grade agent output.

Want agent-written UI held to this standard? At SDCLabs, AI agents draft code and tests, engineers review and decide what ships, and automated tests verify every change. See our AI testing services. Our founders created the open-source test frameworks Codeception and CodeceptJS.

Should you try Vercel UI SDK?

Try it if your team builds custom interactive components, such as pickers, canvases and editors, or if you want agents to operate your UI through a typed bridge. Skip it, for now, if you need standard components and stable APIs. The independent test suggests a strong model is already close on quality for standard components, and UI SDK adds time and cost. The creator's own summary of the product in the video description: "It isn't for you. It's for your agents."

If you try it, treat it as beta. Pin the version, start with one component, write the keyboard test first, and measure your own time and cost. The vendor numbers and the independent numbers describe different jobs, so neither replaces your own trial. For the wider picture of agent-built software, see agentic engineering and our AI agentic engineering services.

Talk to us about testing agent-built UI.

Frequently asked questions

What is Vercel UI SDK?

A TypeScript library from Vercel Labs of more than 50 UI behaviors, such as roving focus, popups and typeahead, that agents combine into components. It works with React, Vue, Svelte, Solid and Web Components and is in beta (UI SDK docs, launch post).

Is Vercel UI SDK free and open source?

Yes. The GitHub repo is licensed Apache-2.0. The latest version when we tested on 2026-11-25 was 0.1.0-beta.17, and the docs warn that some APIs may still change.

Does UI SDK make agent-built components better?

In one independent test, builds without and with UI SDK scored within one check of each other (14 and 13 of 15, then 18 and 19 of 19), while UI SDK took about 5 times as long and cost 3.5 to 6.3 times as much. The creator calls it two data points, not a benchmark (test README).

How do you install the UI SDK skill?

Run npx skills@latest add vercel-labs/ui --skill ui-sdk, and install the packages for your framework, for example npm install @ui-sdk/react @ui-sdk/core (skills docs, setup docs).

How do you test a component an agent built?

Use Playwright to press Tab, arrow keys, Home, End and Enter, and assert focus, roles and aria-selected. UI SDK also ships a checkPattern helper for a list of patterns, including listbox (testing docs).

#vercel-ui-sdk#agentic-ui#accessibility#playwright
Mykhailo PoliarushMykhailo PoliarushFounder and CEOLeads SDCLabs, an AI development company founded in Krakow in 2011.LinkedInGitHub

Related posts

Get an estimate for your product.