Featured answer
Give me an overview of ui
ui, published as vercel-labs/ui, is a library of behaviors for agents to build the next generation of user interfaces. It provides keyboard navigation, focus, selection, dismissal, popups, and drag and drop, along with the ARIA attributes they need. The core is written in TypeScript in packages/core, with the entry point packages/core/src/index.ts, and framework adapters such as packages/svelte/src/index.ts, packages/vue/src/index.ts and packages/solid/src/index.ts connect those behaviors to React, Vue, Svelte, Solid and Web Components. A component is built by creating a primitive with behaviors, and createParts renders it into parts such as Root, Input and Clear, with the same parts produced in every supported framework. The repository holds 6358 files across four layers: Application (971), Service (401), Config (41), and Docs & Tooling (3735). To start reading, open packages/core/src/index.ts for the behaviors, then a framework adapter, and run apps/playground/src/main.ts or browse apps/docs for documentation.
| Layer | Files |
|---|---|
| Application | 971 |
| Config | 41 |
| Service | 401 |
| Docs & Tooling | 3735 |
Basis: Inferred · knowledge graph· as of 724a7d6