Skip to content

About

Experimental Vue 3 renderer for NitroUI. Build native iOS and Android apps with Vue and TypeScript.

Resources

Stars

22 stars

Watchers

0 watching

Forks

Repository files navigation

NitroUI Vue

Build native iOS and Android apps with Vue 3.

Documentation · Quick start · Component reference · Example app · npm

NitroUI Vue is a community renderer for NitroUI. Write screens as Vue single-file components with TypeScript, slots and reactive state. Vue handles component updates. NitroUI creates the native views, lays them out and presents them in an iOS or Android window.

Android performance comparison

Watch the same Relay chat app launch and scroll through a 10,000-message conversation in NitroUI Vue, NitroUI (React) and React Native. All three recordings use release builds on the same POCO M3 Pro 5G running Android 16.

The timer runs from process creation until the first “Saturday Hike” title appears in the inbox. The scrolling sequence then repeats the same swipes in each app.

Relay running side by side in NitroUI Vue, NitroUI (React) and React Native on Android

Watch the side-by-side video (MP4)

A native text field in Vue

iOS Simulator showing Hello, Rafa! above the native keyboard Android emulator showing the same greeting with its keyboard open

Type a name and the label updates on each keystroke. The field binds to a Vue ref through v-model. The layout prop controls how NitroUI arranges the two native views.

<script setup lang="ts">
import { ref } from '@vue/runtime-core'
import { Text, TextInput, View } from '@getcortexlabs/nitroui-vue'

const name = ref('')
</script>

<template>
  <View :layout="{ flexGrow: 1, justifyContent: 'center', padding: 28, gap: 16 }">
    <Text :fontSize="30">{{ name ? `Hello, ${name}!` : 'Hello, Vue!' }}</Text>
    <TextInput v-model="name" placeholder="Your name" :layout="{ height: 48 }" />
  </View>
</template>

Start an app

The standalone starter pairs NitroUI Vue 0.4.0 with NitroUI 0.3.0 and Vue 3.5.46. Use Bun 1.4.5 to install its SDK patches. For iOS, set up Xcode and a simulator on an Apple Silicon Mac. For Android, install the JDK and Android SDK, set ANDROID_HOME and put adb on your path. Platform requirements

bunx degit@2.8.4 'getcortexlabs/nitroui-vue/starter#v0.4.0' MyApp
cd MyApp
bun install --frozen-lockfile
# To use your own app identifiers, edit setup.ts before the next step.
bun run setup
bun run start

Press i for iOS or a for Android. Type a name in the starter, then edit the placeholder in src/NameField.vue and save. The dev server reloads the component and the greeting resets. Run bun run typecheck to check props and emitted events in your templates.

Already have a NitroUI app? The bundler guide includes the dependencies, SDK patches and app.json configuration for importing .vue files directly. Add Vue to an existing app

Explore the example app

The example runs against the renderer in this checkout. From the repository root, run the following commands, then press i or a.

bun install
cd example
bun run setup
bun run start
Open this screen Try it on a device
Photo transitions Open a thumbnail, then go back to the gallery. Try finishing and cancelling a predictive Back gesture on a supported Android device. Shared elements
Named routes Switch tabs and return to the screen you left open. Explore the sidebar, detail and inspector in the adaptive workspace. Navigation
Mixed list Edit a row and scroll through the thumbnails to see how native cells are reused for different items. ListView
Gestures and motion Move the drag card sideways, double-tap the counter or hold the preview to animate it. Gestures and animation
Liquid Glass Compare the glass controls on iOS 26 or later with their fallback on Android and earlier iOS versions. Liquid Glass

For an example that talks to a service, Field notes includes a live HTTP and WebSocket feed, a draft saved across launches with MMKV and a Vue screen that calls Swift or Kotlin. Run Field notes

How many rows stay mounted?

In the 1,000-item list benchmark, eight rows fit in the viewport. Peak mounted rows were 8 on iPhone 17 Pro and 11 on POCO M3 Pro 5G, for both text-only rows and rows with thumbnails. Editing one item rebound only that row on both phones.

Those measurements used ARM64 Release builds of NitroUI Vue 0.2.1 with NitroUI 0.3.0 and the Starlight layout engine. The report includes scroll callback intervals, memory measurements and the fixture for reproducing the run. Performance report · Physical-device fixture

Working on the renderer

The host uses Vue’s createRenderer and NitroUI’s native bindings. When Vue moves a keyed child, the host updates both its native view order and its position in the layout tree. Use registerApp(App) to create an app per window scene, or mount(App, controller) to embed Vue in an existing controller. Renderer internals · Windows and controllers

From the repository root, run bun run typecheck and bun run test to check the renderer. Use bun run docs:dev to browse the documentation and playground locally, or bun run docs:build to build the site.

About

Experimental Vue 3 renderer for NitroUI. Build native iOS and Android apps with Vue and TypeScript.

Resources

Stars

22 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages