UI SDK

Headless behavior primitives — keyboard, focus, selection, popups, drag and drop, plus ARIA — that agents compose into accessible components for five frameworks.

Source repo
vercel-labs/ui
Stars
★ 7.2k
Last updated
today
FARS reviewed
Nov 24, 2026
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
Library / SDKAgent plugin / skill
Works with
Universal · cross-platform
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.jsnpmShell / CLINetwork accessLocal filesystem
Typical use
Frontend teams that want a coding agent to generate accessible search fields, menus and listboxes instead of hand-writing focus and key handling each time.
Not a fit if
  • Teams that want styled, drop-in components — it ships behaviors only; you supply markup and CSS.
  • Projects that need a stable, GA API — the SDK is in beta and may change.
  • Teams whose agent tooling cannot run npm install/npx or write code.
Website
ui-sdk.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-24

What does this agent do, and when should you use it?

UI SDK is a beta, unstyled behavior library from vercel-labs aimed at teams whose coding agents write the interface code. The core package @ui-sdk/core supplies keyboard navigation, focus management, selection, dismissal, popups, drag and drop, and the ARIA those interactions need; adapters @ui-sdk/react, @ui-sdk/vue, @ui-sdk/svelte, @ui-sdk/solid and @ui-sdk/web project that into each framework's native components. You declare a primitive with definePrimitive (name, state, api, slots), then render it with createParts, which turns slots into Root/Input/Clear components or custom elements. The repo also ships an agent skill, installed with npx skills@latest add vercel-labs/ui --skill ui-sdk, so an agent learns the pattern. It is Apache-2.0 licensed and currently governed by Vercel's public beta terms, so the framework, APIs and docs may change before general availability. No CSS or theme ships with it — markup and visuals stay entirely with you.

@ui-sdk/core exposes behavior factories such as createPopup, createSelection, createTypeahead and createFocusRecovery. Calling definePrimitive({ name, state, api, slots }) declares a primitive: state builds a store, api exposes methods like set, and slots describe named parts (input, clear) with attrs, DOM event handlers, press and bind hooks. At render time createParts(primitive, mapping) binds each slot to a tag or component; the React, Vue, Svelte and Solid adapters return usable parts.Root, parts.Input and parts.Clear components, while the Web Components adapter registers custom elements using wrappedButton and wrappedChild targets (e.g. search-field, search-field-input, search-field-clear). The output is framework-native components and elements with keyboard and ARIA behavior attached, and no styling at all.

  1. Frontend teams that want a coding agent to generate accessible search fields, menus and listboxes instead of hand-writing focus and key handling each time.
  2. Organizations maintaining the same interaction behavior across frameworks, e.g. a React site plus a Vue admin, who want one definition and five renderers.
  3. Design system teams that only want the behavior layer while keeping their own tokens and CSS.
  4. Legacy projects on Web Components that need ARIA and focus recovery added without adopting a new component vendor.
  5. Prototyping agent-driven or MCP-adjacent UI where the primitives themselves are produced by an agent.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

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

How do you install or deploy this agent?

The SDK is in beta; install core plus the adapter for your framework:

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

For other frameworks, swap @ui-sdk/react for @ui-sdk/vue, @ui-sdk/svelte, @ui-sdk/solid or @ui-sdk/web. Then give your coding agent the UI SDK skill:

npx skills@latest add vercel-labs/ui --skill ui-sdk

This needs a Node.js/npm environment with network access to the npm registry; no API keys or extra services are required.

How do you use this agent?

Start by declaring the primitive with definePrimitive, which bundles state, API methods and per-slot behavior:

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),
    }),
  }),
})

export { searchField }

Then call createParts from your framework's adapter. The React form:

import { createParts } from "@ui-sdk/react/primitive"
import { searchField } from "./search-field"

const parts = createParts(searchField, { input: "input", clear: "button" })

const SearchField = parts.Root
const SearchFieldInput = parts.Input
const SearchFieldClear = parts.Clear

function Search() {
  return (
    <SearchField>
      <SearchFieldInput placeholder="Search" />
      <SearchFieldClear>Clear</SearchFieldClear>
    </SearchField>
  )
}

Vue, Svelte and Solid follow the same shape with @ui-sdk/vue/primitive, @ui-sdk/svelte/primitive and @ui-sdk/solid/primitive. For Web Components, register an element per part and use it in HTML:

import { createParts, wrappedButton, wrappedChild } from "@ui-sdk/web"
import { searchField } from "./search-field"

createParts(searchField, {
  root: "search-field",
  input: { tag: "search-field-input", target: wrappedChild("input") },
  clear: { tag: "search-field-clear", target: wrappedButton },
})

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.

What are this agent's strengths and limitations?

Pros
  • One definePrimitive definition feeds five render targets via createParts (React, Vue, Svelte, Solid, Web Components), so behavior is written once.
  • Keyboard navigation, focus recovery (createFocusRecovery), selection and popup behavior ship with the matching ARIA instead of being re-implemented per project.
  • Headless by design: no markup or CSS is imposed, so it drops into an existing design system.
  • A documented agent skill command lets an agent learn the primitive/parts pattern and generate components.
  • Apache-2.0 licensed and usable without any paid service or API key.
Limitations
  • Beta status: the README states the framework, APIs, documentation and behavior may change before general availability.
  • Ships no styles or themes — you must build the entire visual layer before anything is presentable.
  • The primitive/slot/parts model is its own abstraction; existing components have to be rewritten to it.
  • Only introductory examples live in the repo; deeper reference is on ui-sdk.dev, an external site.
  • Topics list mcp and webmcp, but the README documents no MCP server or tool interface — do not assume an MCP integration exists.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
UI SDK This agent 57 · Major gaps Library / SDKFree ★ 7.2k today TypeScript —
Kubai Icons 48 · Major gaps Agent plugin / skillFree + model costs ★ 1.2k 1d ago JavaScript Codex · Claude Code
FormKit 49 · Major gaps Agent plugin / skillFreemium ★ 4.8k today TypeScript Codex · Claude Code
CopilotKit 64 · Some gaps CLIFreemium ★ 39k today TypeScript Codex · Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
57/ 100 5-point scale 2.9 / 5
Trust 12/29
Reliability 8/14
Adaptability 12/18
Convention 11/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

Evidence shows CI defaults to contents: read, shipped packages claim zero runtime dependencies, and action-source tests track agent/keyboard/programmatic provenance with undoSource support. However, agent skills run git/npx/pnpm and spawn background agents without a visible permission allowlist, sandbox, or confirmation gate for destructive actions; storage helpers exist but there is no sensitive-data handling guidance; dependency security is only partly shown because dev dependencies use ranges and no lockfile/audit evidence is in the packet. Scores: least_privilege=1, user_confirmation=1, data_flow_transparency=1, sensitive_data_handling=0, dependency_security=2, external_effects=1, rollback=2, source_attribution=2.

Reliability8 / 14 · 2.9/5

README, AGENTS.md, source, and tests are broadly consistent, and public npm packages plus zero runtime dependencies support dependency availability. But AGENTS.md says it is not a component library while packages export many components, and the playground framework list omits Solid, which is a minor inconsistency. Failure messages are only thinly evidenced through scattered warnings and exit-code checks, with no systematic error-message design. Scores: self_consistency=2, dependency_availability=2, failure_messages=1.

Adaptability12 / 18 · 3.3/5

The material covers agent builders, contributors, and five frameworks; skill descriptions include clear trigger conditions; and SSR/RTL/no-portal environment fit is stated. But there is no scenario matrix or full environment-validation evidence, and the boundary between internal and user-facing skills is only partly explained. Scores: audience_and_scenarios=2, capability_boundaries=2, trigger_precision=2, environment_fit=2.

Convention11 / 18 · 3.1/5

README/AGENTS/contributing/skill directories are clearly organized, install commands and npx skills add are explicit, naming-stability rules and one-shape guidance are documented, examples cover multiple frameworks, and the Apache-2.0 LICENSE is complete. But there is no FAQ, known limitations are mostly the beta terms, no CHANGELOG is present (only a changesets dev dependency), and maintenance responsibility has a security contact while publisher identity remains unverified. Scores: information_architecture=2, install_notes=2, naming_stability=2, examples_and_faq=2, known_limitations=1, license=3, versioning_changelog=1, maintenance_responsibility=2.

Effectiveness9 / 13 · 3.5/5

APIs, examples, skills, and tests indicate the product can be used to build and drive UIs, and zero runtime dependencies plus a uniform shape offer cost advantages. But beta status, complexity, and the lack of executed validation limit the effectiveness judgment. Scores: output_usability=2, marginal_value=2, cost_benefit=2.

Verifiability5 / 8 · 3.1/5

Claims in README/AGENTS are traceable to source, tests, and CI, and the write-docs skill requires separating planned capabilities from shipped behavior. However, the packet is a sample, claims such as zero dependencies and test coverage are not fully shown, and static review cannot execute verification. Scores: claim_traceability=2, cross_source_corroboration=2, fact_inference_separation=2.

Risks and how to mitigate them
  • Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • Agent skills execute git, npx, pnpm, and other commands and spawn background agents, but no permission allowlist, sandbox, or destructive-action confirmation mechanism is shown.
  • Storage helpers for localStorage/cookie/sessionStorage exist, but there is no sensitive-data handling or privacy-boundary guidance.
  • The project is in beta and README states APIs and behavior may change; no CHANGELOG is present in the packet, limiting version-history traceability.
  • Publisher identity is unverified; do not infer trust, reliability, or test quality from the Vercel Labs name alone.
  • This is a static source review; no installation, test execution, or runtime verification was performed, and unseen files are unknown rather than missing.
Evidence confidence: Low Reviewed Nov 24, 2026 Reviewed revision d5c6249e1a0b
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/ui.svg)](https://followagents.com/en/agents/ui)
<a href="https://followagents.com/en/agents/ui"><img src="https://followagents.com/badge/ui.svg" alt="FARS review"></a>

FAQ

How is this different from a regular headless component library?
A typical headless library hands you finished components such as a Combobox. UI SDK hands you behavior primitives: you declare state, api and slots with definePrimitive, then project them with createParts into whichever framework you use. The component lives in your repo; the behavior and ARIA come from the SDK.
Do I have to let an agent write the code?
No. The README leans on agents (npx skills@latest add vercel-labs/ui --skill ui-sdk installs the skill) and says you don't need to learn the authoring syntax, but the definePrimitive/createParts API is a normal TypeScript API you can write by hand.
What does it cost, and do I need model credentials?
Nothing in the repository requires payment or keys; it is Apache-2.0. If you generate code with your own coding agent, that cost belongs to whichever agent service you already use, not to UI SDK.
Is it safe to ship to production today?
Treat it as pre-release. The README marks it beta under Vercel's public beta agreement and warns that APIs may change, which suits internal or experimental projects that can track updates rather than long-lived public surfaces.
Can I use it with a framework that isn't listed?
The documented adapters are React, Vue, Svelte, Solid and Web Components (@ui-sdk/web). Anything else would mean writing your own binding to the core primitive/parts model; the source shows no additional adapters.
Is UI SDK open source?
Yes. The source code is on GitHub (vercel-labs/ui) under the Apache-2.0 licence.
Is UI SDK still maintained?
Yes. The latest commit on GitHub is from 2026-11-24, within the last 30 days.
Who makes UI SDK?
UI SDK is published on GitHub by the account vercel-labs. FollowAgents has not verified which person or company is behind that account.
What is UI SDK's official website?
The project's GitHub repository lists https://ui-sdk.dev as its website. That link is set by the repository owner; the source code itself is on GitHub (vercel-labs/ui).
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts