Skip to content

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.

The dependency direction is one-way. Alicorn never imports AliKit or an application.

LayerOwnsDoes not own
ApplicationDomain state, commands, ranking, hierarchy, loading, mutation, routing, dispatch, and product policy.Private runtime storage, a parallel accessibility tree, or a new engine subsystem.
AliKitReusable interaction behavior, semantics, copyable presentation parts, and setup-time theme contracts.A second runtime, theme engine, retained tree, state store, or required framework.
AlicornLayout, 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.

Command Palette — native Alicorn capturealikit:command_palette

Command Palette

Search and navigate a caller-owned list of actions from a keyboard-friendly modal built from public result parts.

componentstable
Tree View — native Alicorn capturealikit:tree_view

Tree View

Render and navigate an application-provided visible-row projection of a tree.

componentstable
Icon Picker — native Alicorn capturealikit:icon_picker

Icon Picker

A copyable icon chooser built from public search, grid, and choice parts with grid/list appearances.

copyable-compositestable
Palette Parts — native Alicorn capturealikit:palette_parts

Palette Parts

A copyable parts-based result list shared by command_palette and application-owned shells.

copyable-partspilot
Radio Group — native Alicorn capturealikit:radio_group

Radio Group

A controlled radio group with one Tab stop, roving arrows, and activation parity.

componentstable
Progress — native Alicorn capturealikit:progress

Progress

Determinate and indeterminate progress with a published numeric range.

componentstable
Segmented Control — native Alicorn capturealikit:segmented

Segmented Control

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

componentstable
Notices — native Alicorn capturealikit:notices

Notices

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

componentstable
Sidebar — native Alicorn capturealikit:sidebar

Sidebar

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

componentstable
Table — native Alicorn capturealikit:table

Table

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

componentstable
Menu — native Alicorn capturealikit:menu

Menu

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

componentstable
Data Grid — native Alicorn capturealikit:data_grid

Data Grid

An interactive dataset grid with one Tab stop, roving cell focus, selection publication, and sort proposals.

componentstable

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.

These packages are part of AliKit but are not separate catalog pages. They are recorded in the component registry and in components.json.

PackageRole

Every page follows the same order so the five-point Alicorn authoring standard stays inspectable.

Five-point standardWhere it appears
Complete, copyable implementationPreview, Copyable implementation
Individually composable partsCompose the parts, Parts and identities
Custom styling and motionStyling, motion, and theme
Keyboard and accessibility contractsKeyboard and accessibility contract
testui conformance examplesConformance 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 testui coverage and the command that reproduces it.
  • Limits are explicit non-claims, not a roadmap.

The upstream standard is component authoring.

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.

Terminal window
odin build . -collection:alicorn=<alicorn> -collection:alikit=<alicorn-kit>

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

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.

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.