vercel-labs/ui

A library of behaviors for agents to build the next generation of user interfaces.

What it solves

Building user interfaces from scratch is complex and error-prone, especially for AI agents that need to generate code. This SDK packages common interaction patterns—like keyboard navigation, focus management, popups, and drag-and-drop—into reusable behaviors with proper ARIA attributes, so agents can assemble UIs quickly without reinventing the wheel or getting accessibility wrong.

How it works

The core package (@ui-sdk/core) defines behaviors that describe how UI elements behave. Agents combine these behaviors into primitives (like a search field with a clear button) using a simple API. Then, adapters for React, Vue, Svelte, Solid, and Web Components translate those primitives into framework-specific components via a createParts function. The result is consistent, accessible UI that works the same across all five frameworks.

Who it’s for

It’s built for AI agents (and developers) who want to generate real user interfaces programmatically. The README positions it as a skill you give to an agent: after installing the SDK, you run npx skills add vercel-labs/ui --skill ui-sdk to let the agent use it. It’s currently in beta, so expect changes.

Highlights

  • Framework-agnostic: core behaviors work with React, Vue, Svelte, Solid, and Web Components.
  • Built-in accessibility: includes ARIA support for keyboard navigation, focus, selection, and more.
  • Agent‑friendly: designed to be consumed by AI agents via a “skill” installer.
  • Beta but open: contributions welcome, with clear security and beta terms.

Related

  • Project
  • Project
  • Project
  • Project