Introduction
NitroUI SDK is a native-first component kit for NitroUI apps. This page explains what it contains, how it is built and where to start.
NitroUI SDK is a component kit for NitroUI apps. NitroUI renders React elements as real UIKit views on iOS and Android views on Android; the kit adds 51 component families on top of that renderer, each with a typed controller, named parts, a typed styles resolver, accessibility through a native semantics host, and actions an agent can drive.
What is in the kit
| Path | What it is |
|---|---|
nitro-ui-sdk/<slug> |
One subpath per family, such as nitro-ui-sdk/button or nitro-ui-sdk/date-picker. |
nitro-ui-sdk/theme |
ThemeProvider, the Ember tokens, createTokens, textStyle and motionDuration. |
nitro-ui-sdk/core |
Controllers, values and action results: createController, createValue, ActionDetails. |
nitro-ui-sdk/parts |
Named parts and the style resolver: createParts, usePartStyles, PartStyles. |
nitro-ui-sdk/agent |
The agent registry: AgentProvider, AgentScope, snapshot, query and act. |
nitro-ui-sdk/material |
MaterialView and MaterialGroup: Liquid Glass with an opaque fallback. |
nitro-ui-sdk/semantics |
Semantics, the native accessibility host, and announce(). |
nitro-ui-sdk/icon |
Icon: SF Symbols on iOS with an optional asset fallback. |
nitro-ui-sdk/testing |
A registry and driver for unit tests of agent behavior. |
nitro-ui-sdk/catalog |
The catalog: slug, name, category, implementation, HeroUI and Expo UI mapping, glass. |
How a family is built
Every family follows the same contract, after the ui-sdk component model:
- A primitive declares the state, the actions and the part names. It holds no React and no native code.
- A controller from
primitive.createApi()attaches to the mounted root. Touch, the agent and your code call the same actions and pass theirsource:"user","agent"or"api". - Parts such as
Button.RootandButton.Labelshare one instance.Rootrenders a default anatomy when it has no children. - Styles are a typed map per part. Each resolver receives
{ tokens, variant, size, state }and returns NitroUIlayout,styleandtextprops.
Families that need the operating system to own the interaction, like switches, sliders, pickers, editors, menus and dialogs, are registered native views. The rest are composed from renderer views inside a native Semantics host. Both kinds render native views with OS-driven animations and no JS render loop (continuous native controls such as Slider still send value changes to JavaScript while dragging).
Where to go next
- Getting started: add the kit to a NitroUI app and render a first component.
- Design principles: the rules every family follows.
- Components: all 51 families, by category.
- Coverage: how the catalog maps to HeroUI Native and Expo UI.
Status
51 of 51 catalog families export runtime implementations; 51 have unit tests, 51 have iOS harness tests and 51 have an example screen. Alongside the shared Semantics foundation host, 22 component native hosts are registered for iOS and 21 real Kotlin component hosts are written for Android (excluding 2 Android binding stubs), though Android has not been built on the development machine, which has no Android NDK. See Platform support.
The kit is a private workspace package. Its origin, a 25-family experiment, and its credits are in the repository README. It is not affiliated with Margelo, HeroUI or Vercel.