ui
A library of behaviors for agents to build the next generation of user interfaces.
What is ui?
A library of behaviors for agents to build the next generation of user interfaces.
Overview of ui
What it is
UI SDK is a library of behaviors for agents to build the next generation of user interfaces. It provides keyboard navigation, focus, selection, dismissal, popups, drag and drop, and the ARIA they need. The core package is @ui-sdk/core, with adapters for React, Vue, Svelte, Solid, and Web Components. The project is in beta and is developed by Vercel Labs.
Key features
- Provides a set of reusable behaviors (focus recovery, press, present, etc.) that agents can compose into UI primitives.
- Offers framework adapters for React, Vue, Svelte, Solid, and Web Components, allowing the same primitive to be rendered in multiple frameworks.
- Uses a
definePrimitiveAPI to create stateful, slot-based components with declarative attributes and event handlers. - Includes a
createPartsfunction to map primitive slots to framework-specific components or custom elements. - Supports accessibility features such as focus recovery and ARIA attributes built into the behaviors.
Use cases
UI SDK is designed for developers building agent-driven user interfaces where the agent composes UI components from low-level behaviors. It can be used to create custom form controls, popovers, menus, drag-and-drop interfaces, and any interactive UI that requires consistent keyboard navigation and accessibility across frameworks.
Getting started
Install the core package and the adapter for your framework:bashnpm 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 agent the UI SDK skill:bashnpx skills@latest add vercel-labs/ui --skill ui-sdk
License and pricing
The project is open source under the Apache-2.0 license. Pricing is not stated; the repository is listed as open source.
Based on the project's public README and repository metadata.