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
- FA score
- 57/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- 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
- Source review
- 57/100 · Major gaps 1 safety controls not found
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.
- 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.
- Organizations maintaining the same interaction behavior across frameworks, e.g. a React site plus a Vue admin, who want one definition and five renderers.
- Design system teams that only want the behavior layer while keeping their own tokens and CSS.
- Legacy projects on Web Components that need ARIA and focus recovery added without adopting a new component vendor.
- 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/corenpx 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/coreFor 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-sdkThis 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- 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?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
How is this different from a regular headless component library?
Do I have to let an agent write the code?
What does it cost, and do I need model credentials?
Is it safe to ship to production today?
Can I use it with a framework that isn't listed?
Is UI SDK open source?
Is UI SDK still maintained?
Who makes UI SDK?
What is UI SDK's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.