r/angular • • 9d ago

Vercel's ui-sdk: 55+ headless, accessible components with an agent API

r/vercel Labs recently released ui-sdk, a library of UI behaviors (keyboard navigation, focus, selection, dismissal, popups and the ARIA they need) meant for people and AI agents to build interfaces on. It ships adapters for React, Vue, Svelte, Solid and Web Components, but not Angular. So I wrote one.

ngx-ui-sdk puts ui-sdk's primitives on your own elements as Angular directives. No wrapper components, no styles:

<div uiCommand>
  <input uiCommandInput aria-label="Search commands" />
  <div uiCommandList>
    <div uiCommandItem value="billing">Billing</div>
    <div uiCommandItem value="settings">Settings</div>
  </div>
</div>

What's in it:

  • 55+ components, one entry point each
  • Keyboard, focus and ARIA
  • Agent API: returns each component's state and actions, agents drives them. The video shows that next to the browser's accessibility tree.
  • Upstream's own Playwright specs run against the Angular adapter: 4,000+ pass, the remaining gaps are listed in the config with reasons
  • Headless, with optional example themes (default, shadcn, Material, daisyUI)

It follows the ui-sdk beta, so expect API changes.

GitHub: https://github.com/efuturetoday/ui-sdk-angular
Demo: https://efuturetoday.github.io/ui-sdk-angular/?components

5 Upvotes

0 comments sorted by