Menu

I built a Vue UI kit for VR and mixed reality
📰

I built a Vue UI kit for VR and mixed reality

DEV Community: vue·Aleksandr Ovchinnikov·about 17 hours ago
#HDjeDDyI
#devtovue#devto#dev#tresjs#quest
Long article (294 words) — no AI summary yet.
Reading 0:00
15s threshold

As a side project I wanted to see how far Vue can go in VR, and I couldn't find a ready-made UI library for WebXR in the Vue world. So I made one: vue-xr-ui , just hit 1.0.

You write VR interfaces the same way you write a normal Vue app:

<XrPanel :position = "[0, 1.45, -1]" :width = "440" > <XrText variant = "headline" > Hello, XR </XrText> <XrButton @click = "count++" > Clicked {{ count }} times </XrButton> </XrPanel>

Enter fullscreen mode

Exit fullscreen mode

What's inside:

~30 components: buttons, toggles, sliders, lists, selects, dialogs, windows you can grab and move, an on-screen keyboard (6 languages + voice input)

one @click for every input: mouse, controller ray, hand pinch, fingertip poke

mixed reality: passthrough, windows that snap to your walls and tables and stay there between sessions

dark/light themes, TypeScript, built on TresJS + three.js + @pmndrs /uikit

100+ e2e tests that drive an emulated Quest 3 on every push

The deeper story of how it works is in a separate article:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.