Components
AliKit is the optional component library for Alicorn, the native GUI runtime for Odin. Every component is ordinary Odin source over Alicorn’s public UI, semantics, layout, and input APIs. There is no second UI tree, state store, theme engine, or component lifecycle.
These pages are the public catalog. They are written where the components live — in the
AliKit repository — and published here at the
pinned revision {pin.revision.slice(0, 7)}. Each page carries the native preview, the copyable
implementation, the parts, the theme recipe, the input and accessibility contract, the conformance
tests, the API, and the limits.
Three layers, one runtime
Section titled “Three layers, one runtime”The dependency direction is one-way. Alicorn never imports AliKit or an application.
| Layer | Owns | Does not own |
|---|---|---|
| Application | Domain state, commands, ranking, hierarchy, loading, mutation, routing, dispatch, and product policy. | Private runtime storage, a parallel accessibility tree, or a new engine subsystem. |
| AliKit | Reusable interaction behavior, semantics, copyable presentation parts, and setup-time theme contracts. | A second runtime, theme engine, retained tree, state store, or required framework. |
| Alicorn | Layout, styling, motion, focus, input routing, semantics, virtual lists, rendering, and conformance primitives. | A ready-made component catalog, application policy, or a second component lifecycle. |
When a behavior is application policy, AliKit exposes the event or callback instead of owning a second policy engine. Each component page states the exact split for that component.
The catalog
Section titled “The catalog”
alikit:command_paletteCommand Palette
Search and navigate a caller-owned list of actions from a keyboard-friendly modal built from public result parts.

alikit:tree_viewTree View
Render and navigate an application-provided visible-row projection of a tree.
alikit:icon_pickerIcon Picker
A copyable icon chooser built from public search, grid, and choice parts with grid/list appearances.

alikit:palette_partsPalette Parts
A copyable parts-based result list shared by command_palette and application-owned shells.

alikit:radio_groupRadio Group
A controlled radio group with one Tab stop, roving arrows, and activation parity.

alikit:progressProgress
Determinate and indeterminate progress with a published numeric range.

alikit:segmentedSegmented Control
Single selection over equal-width segments with a moving indicator built on the shared selection behavior.

alikit:noticesNotices
Runtime toast helpers plus copyable card and stack parts for inline banners.

alikit:sidebarSidebar
A composable navigation rail with expanded/collapsed presentations and public rail/item parts.

alikit:tableTable
A static, non-spanned presentation table sharing column tracks, headers, and cell scaffolding with the data grid.

alikit:menuMenu
An anchored dropdown built from trigger, popup, row, separator, and optional group parts with custom row rendering.

alikit:data_gridData Grid
An interactive dataset grid with one Tab stop, roving cell focus, selection publication, and sort proposals.
The previews are genuine SDL_GPU windows captured from the examples in the AliKit repository. The site does not reimplement a component in HTML or JavaScript. Interactive WebGPU previews are a later catalog step; the capture and the copyable source are the v1 contract.
Support packages
Section titled “Support packages”These packages are part of AliKit but are not separate catalog pages. They are recorded in the
component registry and in components.json.
| Package | Role |
|---|
How to read a component page
Section titled “How to read a component page”Every page follows the same order so the five-point Alicorn authoring standard stays inspectable.
| Five-point standard | Where it appears |
|---|---|
| Complete, copyable implementation | Preview, Copyable implementation |
| Individually composable parts | Compose the parts, Parts and identities |
| Custom styling and motion | Styling, motion, and theme |
| Keyboard and accessibility contracts | Keyboard and accessibility contract |
testui conformance examples | Conformance tests |
Each page also lists the public API, the known limits, the exact Alicorn pin used for the capture, and a source map back to the package, tests, example, and theme data.
- Preview is the native capture, not a browser recreation.
- Responsibility split names what Alicorn, the package, and the application own.
- Installation and Copyable implementation are the two consumption paths.
- Compose the parts is the path for applications that own the shell.
- Parts and identities document stable keys and what may be omitted or replaced.
- Keyboard and accessibility contract is a table of inputs and published semantics, including what the component does not claim.
- Conformance tests name the
testuicoverage and the command that reproduces it. - Limits are explicit non-claims, not a roadmap.
The upstream standard is component authoring.
Install or copy
Section titled “Install or copy”AliKit is source-level Odin. Import the package through the AliKit collection, compose its public parts beside Alicorn controls, or copy the declared source files into your application. The package catalog records the install shape, the copy recipes, and how to choose between overlapping packages such as the command palette and Palette Parts.
odin build . -collection:alicorn=<alicorn> -collection:alikit=<alicorn-kit>The registry
Section titled “The registry”components.json is the
machine-readable catalog. It records each entry’s identity, package, source, tests, example,
capture, dependencies, owned state, parts, keyboard and accessibility contract, theme roles, API,
and limits. The manifest is a catalog seed, not a package manifest: it declares no binary artifact,
semantic version, or install command.
Download components.json · Field reference
Pin the pair together
Section titled “Pin the pair together”Source-level and early. AliKit imports Alicorn’s public packages and may evolve
with them. This catalog is published from alicorn-kit fded57a,
whose dependencies.lock.json pins Alicorn
47c9d4a. Consume the exact revisions together;
read compatibility and pinning before updating the pair.
Not in AliKit yet
Section titled “Not in AliKit yet”Calendars, color pickers, split panes, terminals, and rich editors are not components here. The table is non-spanned. Built-in sorting, filtering, and editing are application policy. A nested tree sidebar is a later Sidebar variant. A component is added only when a real application need demonstrates reusable behavior.