Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Languages

Repo of the day: UI SDK, accessible behaviors your agent assembles into a UI

Vercel Labs gives agents accessible behaviors to build components in React, Vue, Svelte, Solid or Web Components. 5,303 stars in three weeks.

UI SDK, from Vercel Labs, has picked up 5,303 GitHub stars since the repo was created on October 26, 2026, and its latest commit landed on November 17. It's a component library turned inside out: instead of finished buttons and selects, it gives you the behaviors (focus, keyboard, selection, popups, drag and drop) plus the ARIA they need, and leaves your coding agent to assemble them into components.

What it is

The core package, @ui-sdk/core, defines primitives built from behaviors such as createPopup, createSelection and createTypeahead. Each primitive declares its state, a small API and its parts (slots): which attributes each element gets, which events it handles and when it's present. An adapter then turns it into React, Vue, Svelte, Solid or Web Components, with the same parts across all five.

It's written in TypeScript, licensed under Apache 2.0, and in beta: @ui-sdk/core first hit npm on November 12, 2026 and is at 0.1.0-beta.7. The docs already include ready-made components (Select, Combobox, Tabs, Menu, Date Picker and more) and sections on connecting an agent that reads your components and calls their actions, including the browser's built-in agent through WebMCP.

Getting started

Installation is a regular npm install plus the agent skill:

bash
npm install @ui-sdk/react @ui-sdk/core
npx skills@latest add vercel-labs/ui --skill ui-sdk

The React adapter needs React 19 or later. Here is the README example: a search field with a Clear button that only shows up when there's text and puts focus back in the input:

typescript
import { createFocusRecovery, definePrimitive } from "@ui-sdk/core"

const searchField = definePrimitive({
  name: "search-field",
  state: () => ({ value: "" }),
  api: (context) => ({
    set: (value: string) => context.store.set({ value }),
    recovery: createFocusRecovery({ fallback: () => context.element("input") }),
  }),
  slots: (slot) => ({
    input: slot({
      attrs: (state) => ({ value: state.value }),
      on: {
        input: (event, { api }) =>
          api.set((event.target as HTMLInputElement).value),
      },
    }),
    clear: slot({
      present: (state) => state.value !== "",
      attrs: () => ({ type: "button" }),
      press: ({ api }) => api.set(""),
      bind: (el, part) => part.api.recovery.bind(el, part),
    }),
  }),
})

createParts(searchField, { input: "input", clear: "button" }) then gives you Root, Input and Clear for your framework. The README is blunt about it: you don't need to learn to write this, because your agent will.

The recommended setup is a prompt too: you paste it into your agent, which installs the packages, adds a note to AGENTS.md pointing at the skill and the llms.txt files shipped inside node_modules, and registers the skill. One detail I like: the prompt tells the agent to stop and ask if a minimum release-age policy blocks the install, rather than working around it. With a package that is days old, that policy is likely to kick in.

What works for me and what doesn't

I like the approach. The hard part of an accessible component isn't the look, it's focus, keyboard handling and ARIA roles, which is exactly where an agent gets things wrong in ways a screenshot won't show. Keeping that in tested code and letting the agent only compose and style cuts the room for error. One set of primitives across five frameworks is also unusual in this space.

What doesn't: it's a beta under Vercel's beta terms, and the docs warn that APIs may change before general availability. The repo has 91 open issues and is three weeks old. And the code the agent produces is more abstract than a conventional component, so reviewing it means learning the primitives-and-slots model.

UI SDK vs React Aria

The reference for unstyled, accessible behavior is Adobe's React Aria.

UI SDKReact Aria
ApproachBehaviors that an agent composes into components50+ unstyled components with behavior and accessibility built in
FrameworksReact, Vue, Svelte, Solid and Web ComponentsReact
Built for agentsYes: skill, llms.txt, WebMCPNot specifically
LicenseApache 2.0Apache 2.0
MaturityBeta, repo from October 2026, 5,303 starsadobe/react-spectrum repo since 2019, 16,043 stars

If you ship React and want accessible components today without betting on a beta, React Aria is the sensible pick. UI SDK makes sense if you work across several frameworks, or if agents already write much of your UI and you want them building on a foundation that handles focus and ARIA for them. I'd try it on an internal component before putting it into a shared design system.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗