Skip to content
Back to search

ui

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

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked yesterday

Check it deeper on your machine

It has changed since its scan on 14 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/vercel-labs/ui with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/vercel-labs/ui'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/vercel-labs--ui/badge.svg)](/listings/vercel-labs--ui)

HTML

<a href="/listings/vercel-labs--ui"><img src="/api/listings/vercel-labs--ui/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

UI SDK is in beta. Install core and 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 agent the UI SDK skill:

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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 198 lines
  1. # UI SDK
  2. A library of behaviors for agents to build the next generation of user interfaces.
  3. Keyboard navigation, focus, selection, dismissal, popups, drag and drop and the ARIA they need live in `@ui-sdk/core`, with adapters for React, Vue, Svelte, Solid and Web Components.
  4. <picture>
  5. <source media="(prefers-color-scheme: dark)" srcset="./assets/behaviors-dark.svg">
  6. <img alt="An environment selector split into three behaviors: createPopup, createSelection and createTypeahead." src="./assets/behaviors-light.svg">
  7. </picture>
  8. **[Read the docs](https://ui-sdk.dev/docs)**
  9. ## Install
  10. UI SDK is in beta. Install core and the adapter for your framework:
  11. ```bash
  12. npm install @ui-sdk/react @ui-sdk/core
  13. ```
  14. For other frameworks, swap `@ui-sdk/react` for `@ui-sdk/vue`, `@ui-sdk/svelte`, `@ui-sdk/solid` or `@ui-sdk/web`.
  15. Then give your agent the UI SDK skill:
  16. ```bash
  17. npx skills add vercel-labs/ui --skill ui-sdk
  18. ```
  19. ## Example
  20. Every component in UI SDK is built from behaviors. You start by creating the primitive with behaviors.
  21. Don't worry, you don't need to learn how to write this. Your agents will. And we made them really good at it.
  22. ```ts
  23. import { createFocusRecovery, definePrimitive } from "@ui-sdk/core"
  24. const searchField = definePrimitive({
  25. name: "search-field",
  26. state: () => ({ value: "" }),
  27. api: (context) => ({
  28. set: (value: string) => context.store.set({ value }),
  29. recovery: createFocusRecovery({ fallback: () => context.element("input") }),
  30. }),
  31. slots: (slot) => ({
  32. input: slot({
  33. attrs: (state) => ({ value: state.value }),
  34. on: {
  35. input: (event, { api }) =>
  36. api.set((event.target as HTMLInputElement).value),
  37. },
  38. }),
  39. clear: slot({
  40. present: (state) => state.value !== "",
  41. attrs: () => ({ type: "button" }),
  42. press: ({ api }) => api.set(""),
  43. bind: (el, part) => part.api.recovery.bind(el, part),
  44. }),
  45. }),
  46. })
  47. export { searchField }
  48. ```
  49. Then render it in your framework with `createParts`. The parts are the same in all five.
  50. ### React
  51. ```tsx
  52. import { createParts } from "@ui-sdk/react/primitive"
  53. import { searchField } from "./search-field"
  54. const parts = createParts(searchField, { input: "input", clear: "button" })
  55. const SearchField = parts.Root
  56. const SearchFieldInput = parts.Input
  57. const SearchFieldClear = parts.Clear
  58. function Search() {
  59. return (
  60. <SearchField>
  61. <SearchFieldInput placeholder="Search" />
  62. <SearchFieldClear>Clear</SearchFieldClear>
  63. </SearchField>
  64. )
  65. }
  66. export { Search }
  67. ```
  68. ### Vue
  69. ```vue
  70. <script setup lang="ts">
  71. import { createParts } from "@ui-sdk/vue/primitive"
  72. import { searchField } from "./search-field"
  73. const parts = createParts(searchField, { input: "input", clear: "button" })
  74. const SearchField = parts.Root
  75. const SearchFieldInput = parts.Input
  76. const SearchFieldClear = parts.Clear
  77. </script>
  78. <template>
  79. <SearchField>
  80. <SearchFieldInput placeholder="Search" />
  81. <SearchFieldClear>Clear</SearchFieldClear>
  82. </SearchField>
  83. </template>
  84. ```
  85. ### Svelte
  86. ```svelte
  87. <script lang="ts">
  88. import { createParts } from "@ui-sdk/svelte/primitive"
  89. import { searchField } from "./search-field"
  90. const parts = createParts(searchField, { input: "input", clear: "button" })
  91. const SearchField = parts.Root
  92. const SearchFieldInput = parts.Input
  93. const SearchFieldClear = parts.Clear
  94. </script>
  95. <SearchField>
  96. <SearchFieldInput placeholder="Search" />
  97. <SearchFieldClear>Clear</SearchFieldClear>
  98. </SearchField>
  99. ```
  100. ### Solid
  101. ```tsx
  102. import { createParts } from "@ui-sdk/solid/primitive"
  103. import { searchField } from "./search-field"
  104. const parts = createParts(searchField, { input: "input", clear: "button" })
  105. const SearchField = parts.Root
  106. const SearchFieldInput = parts.Input
  107. const SearchFieldClear = parts.Clear
  108. function Search() {
  109. return (
  110. <SearchField>
  111. <SearchFieldInput placeholder="Search" />
  112. <SearchFieldClear>Clear</SearchFieldClear>
  113. </SearchField>
  114. )
  115. }
  116. export { Search }
  117. ```
  118. ### Web Components
  119. Register a custom element for each part:
  120. ```ts
  121. import { createParts, wrappedButton, wrappedChild } from "@ui-sdk/web"
  122. import { searchField } from "./search-field"
  123. createParts(searchField, {
  124. root: "search-field",
  125. input: { tag: "search-field-input", target: wrappedChild("input") },
  126. clear: { tag: "search-field-clear", target: wrappedButton },
  127. })
  128. ```
  129. Then use them in your HTML:
  130. ```html
  131. <search-field>
  132. <search-field-input><input placeholder="Search" /></search-field-input>
  133. <search-field-clear><button>Clear</button></search-field-clear>
  134. </search-field>
  135. ```
  136. ## Contributing
  137. Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) to get the repo
  138. running locally and land a change, and use
  139. [issues](https://github.com/vercel-labs/ui/issues) to report bugs. By
  140. participating, you agree to our [Code of Conduct](CODE_OF_CONDUCT.md).
  141. ## Security
  142. Please do not open public issues for security vulnerabilities. Instead, follow
  143. [SECURITY.md](SECURITY.md) and report responsibly to
  144. [responsible.disclosure@vercel.com](mailto:responsible.disclosure@vercel.com).
  145. ## Beta terms
  146. UI SDK is currently in beta and subject to the [Vercel beta terms](https://vercel.com/docs/release-phases/public-beta-agreement);
  147. the framework, APIs, documentation, and behavior may change before general availability.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.