Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
X

xr

> 前端框架
Open source

VR/AR for react-three-fiber

2.6K stars0 likes2 views
WebsiteGitHub

About

VR/AR for react-three-fiber

xr

Turn any R3F app into an interactive immersive experience.


bash
npm install three @react-three/fiber @react-three/xr@latest

What does it look like?

A simple scene with a mesh that toggles its material color between "red" and "blue" when clicked through touching or pointing.
…

How to enable XR for your @react-three/fiber app?

  1. const store = createXRStore() create a xr store
  2. store.enterAR() call enter AR when clicking on a button
  3. <XR>...</XR> wrap your content with the XR component

... or read this guide for converting a react-three/fiber app to XR.

Tutorials

  • Store
  • Interactions
  • Handles
  • Options
  • Object Detection
  • ✴ Origin
  • Teleport
  • ️ Gamepad
  • ➕ Secondary Input Sources
  • Layers
  • Custom Controller/Hands/...
  • ⚓️ Anchors
  • Dom Overlays
  • Hit Test
  • ⛨ Guards

External Tutorials

  • WebXR First Steps React by Meta Quest

Roadmap

  • XR Gestures
  • Tracked Body

Migration guides

  • from @react-three/xr v5
  • from natuerlich

Sponsors

This project is supported by a few companies and individuals building cutting-edge 3D Web & XR experiences. Check them out!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptarreactreact-three-fibervr

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架