r/vuejs • u/ovchinnikov-lxs • 18h ago
I built a Vue 3 UI kit for VR and mixed reality (works in the Quest 3 browser)
Hi r/vuejs! 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 u/click="count++">Clicked {{ count }} times</XrButton>
</XrPanel>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
@clickfor 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 + u/pmndrs
- 100+ e2e tests that drive an emulated Quest 3 on every push
Try it:
- Live demo (open in the Quest browser, or on desktop with a mouse): https://vue-xr-ui-home.vercel.app
- Docs: https://vue-xr-ui.vercel.app
- GitHub: https://github.com/ovchinnikov-lxs/vue-xr-vr
npm i vue-xr-ui u/tresjs/core three
My main question to you: what should I add next? What would you need to build a real VR/MR app in Vue? A few ideas I'm weighing:
- toasts / notifications
- context menu and nested menus
- data table or grid
- date and color pickers
- a 3D model viewer card and a video player panel
- drag-and-drop between panels
Drop a comment with what you'd use, or open a feature request: https://github.com/ovchinnikov-lxs/vue-xr-vr/issues/new?template=feature.yml
If you have a Quest, I'd also love to hear how it feels in the headset.