NewsCrawler.org

UI SDK: a library where AI agents build UI components from basic behaviors

UI SDK: a library where AI agents build UI components from basic behaviors
Image: news.hada.io

UI SDK is a TypeScript library from Vercel Labs, released under the Apache-2.0 license, for building custom UI components from basic behaviors such as opening a popup, selecting an item, and finding an item by typed text. Reusing these behaviors, it can build a Select, an autocomplete, a combobox and a user picker. It provides more than 50 behaviors, including keyboard navigation, focus management, drag and drop, resizing and zoom, and it reuses keyboard handling and screen reader support that are hard to implement by hand. A testing tool checks the accessibility of the finished components.

The library supports React, Vue, Svelte, Solid and Web Components[2], rendering the same behavior definitions in each framework. Its design is [1]headless, styled with CSS or Tailwind, and it also includes basic components such as menus, tabs, calendars and color pickers. An agent skill explains how to choose and connect the needed behaviors. With an agent bridge, AI can read a component's state, call its behaviors directly, and change input values or select items; these changes go through the app's event handling, which can allow or reject them. WebMCP integration is supported.

Product UI SDK ui-sdk.dev

TypeScript library of behaviors (popups, selection, keyboard navigation, focus) for building custom UI components, usable by AI agents across several frameworks.

Read the original github.comDiscussion on GeekNews

Sources

  • KRGeekNews KO

    UI SDK - AI 에이전트가 UI의 기본 동작을 조합해 컴포넌트를 만드는 라이브러리

    6 points0 comments

Published: First seen: Читать по-русски

Open as a page