4.4k

Built-in Components

This page moved. The catalog now has a full Components section — one page per component with engine-rendered light/dark previews, validated Native markup, the Zig builder equivalent, and attribute tables generated from the markup vocabulary.

The short version: the Native SDK ships a native-rendered component catalog with house-style defaults — neutral surfaces, Geist typography, subtle borders, focus states, and token-driven color, radius, shadow, blur, and motion — owned by the SDK and rendered through the retained canvas surface, not platform widget skins. Every component is expressible in Native markup through its element and programmatically through the canvas.Ui builder.

The canonical catalog lives in native_sdk.canvas.builtin_component_kinds and builtin_component_names; each descriptor reports its style, root widget kind, semantic role, and composite flag, and native_sdk.canvas.builtinComponentWidget(...) constructs a component's default foundation directly. See Native UI for markup semantics and the runtime contract.