React writes it. UIKit draws it.

NitroUI SDK is a native-first component kit for NitroUI apps: 51 component families with typed controllers, an agent API, a semantic design system and Liquid Glass on iOS 26.

pnpm add "nitro-ui-sdk@workspace:*"

Run in a workspace app directory (such as apps/example), then run bun run nitro-ui prepare to link its native module.

The catalog tour, recorded from the example app on the iOS simulator.

Native views from the first pixel

NitroUI's renderer turns React elements into real UIKit views on iOS and Android views on Android. There is no web view and no JavaScript render loop: the OS draws views and runs animations natively, while continuous controls such as Slider deliver value changes to JavaScript during drags and commit once at the end.

22 registered native hosts
Switches, sliders, pickers, editors, menus and dialogs are registered UIKit and Android views (all 23 native families implemented). The OS owns the gesture, the haptic and the spoken description.
27 composed families
Buttons, cards, chips and lists are renderer views wrapped in the shared native Semantics host for name, role, value and state.
Motion stays native
Pressed, open and close states animate with View.animate and springs. Reduced motion sets every duration to zero.
Re-renders only on change
Stable callbacks, memoized parts and per-context style caching via usePartStyles, so a parent render does not re-bind native handlers.

One model for every family

Each family is a primitive with a controller, named parts and typed styles, after the ui-sdk component model. Learn it once and it holds for all 51.

import { useState } from "react";
import { Switch, switchPrimitive, type SwitchProps } from "nitro-ui-sdk/switch";

// Resolved per part from tokens, variant, size and state.
const styles: SwitchProps["styles"] = {
  label: ({ tokens, state }) => ({
    text: {
      color: state.disabled ? tokens.colors.muted : tokens.colors.foreground,
    },
  }),
};

export function WifiSetting() {
  const [wifi] = useState(switchPrimitive.createApi);
  const [on, setOn] = useState(true);

  return (
    <Switch.Root
      api={wifi}
      label="Wi-Fi"
      value={on}
      onValueChange={(next, details) => {
        // Touch, agent and controller all arrive here.
        if (details.source === "agent" && !next) details.preventDefault();
        else setOn(next);
      }}
      styles={styles}
    />
  );
}

// The same action without a touch:
// wifi.current?.toggle("api");
Primitive
switchPrimitive declares the state, the actions and the part names. No React inside.
Controller
createApi() returns a controller the root attaches to. Touch, agent and code call the same actions, tagged user, agent or api.
Parts
Switch.Root, Label, Control and Hint share one instance. Root renders a sensible default anatomy when it has no children.
Styles
A typed styles map per part, resolved from tokens, variant, size and state (and cached per context in families using usePartStyles).

Controllers and values Styles

Agents press the same buttons people do

Wrap a screen in an AgentProvider and every control registers itself. An agent reads a snapshot, queries by role, name or text, and acts through the actions touch uses, with details.source set to"agent".

  • Refs belong to the screen in front and go stale when a control unmounts.
  • Secure fields are redacted. The agent may only focus them.
  • Actions marked with confirm (such as delete, pay or send) wait for a native confirmation that only a person can approve.

Agent API

import { createAgentRegistry } from "nitro-ui-sdk/agent";

const registry = createAgentRegistry();
registry.setForeground("settings");
// Mount the screen in <AgentProvider registry={registry} route="settings">

const [wifi] = registry.query({ role: "switch", name: "wi-fi" });
// wifi = {
//   ref: "control.1.1", component: "Switch", role: "switch",
//   name: "Wi-Fi", scope: "settings", value: true,
//   state: { disabled: false, checked: true },
//   actions: [
//     { name: "setChecked", confirm: false },
//     { name: "toggle", confirm: false },
//   ],
// }

if (wifi) {
  await registry.act({
    steps: [{ ref: wifi.ref, action: "setChecked", args: false }],
  });
  // [{ status: "refused" }]: onValueChange declined the agent
}

Ember, in light, dark and glass

Tokens name intent, not looks: accent, surface, overlay, field, focus. Floating controls in the navigation layer—toolbars, floating buttons, toasts, sheet handles, segmented pills, popovers and system menus—use Liquid Glass on iOS 26, with opaque token surfaces when glass is off, unsupported or transparency is reduced.

  • Toolbar example screen, light appearance
    Light
  • Toolbar example screen, dark appearance
    Dark
  • Toolbar example screen, liquid glass appearance
    Liquid Glass
Toolbar in the example app, captured on the iOS simulator.

Light

  • background#F7F5F0
  • surface#FFFFFF
  • default#ECE6DD
  • foreground#2A1D17
  • muted#6F5E55
  • accent#CC4A0F
  • accentSoft#FDEBDD
  • success#15803D
  • warning#B45309
  • danger#B91C1C

Dark

  • background#120D0A
  • surface#1C1511
  • default#2E241E
  • foreground#F5F1EA
  • muted#B3A396
  • accent#FF7A33
  • accentSoft#3A1D0E
  • success#4ADE80
  • warning#FBBF24
  • danger#F87171

Theming Liquid Glass

Recorded in the example app

Every family has a screen in the example app with each variant, size and state, plus switches for light, dark and glass.

Liquid Glass Toolbars, toasts and floating buttons over content, then the same screen with glass off.
Light and dark One switch flips every token. Native pickers and sheets follow the app’s appearance.
Native controls Switches, sliders, steppers and pickers drawn and driven by UIKit, with one commit per drag.
Overlays Dialogs, action sheets, popovers, menus and sheets with detents.

51 families, one import each

Every family is a subpath export, nitro-ui-sdk/<slug>, with its own docs page.

Measured against HeroUI Native

The catalog follows HeroUI Native’s component list. Every open-source component maps to a catalog family. Pro components are mapped where a native control exists and left out, with a reason, where they are app compositions. Coverage below is derived from real runtime exports in each family’s index.ts (every mapped family exports a runtime implementation; 51 of 51 component READMEs are written). The kit’s catalog also maps to 58 Expo UI components.

Full coverage table

Coverage of HeroUI Native components
CatalogTotalBuiltPlanned
HeroUI Native, open source44440
HeroUI Native Pro71110