Skip to content

Working examples ​

Every example below has three views:

  • Split shows the running component and its source together.
  • Preview gives the WebGL result the full available width.
  • Code shows the complete .tsx file with a copy button.

The source displayed in the code panel is the same file compiled to render the preview. There is no separate hidden implementation.

Run the examples ​

bash
npm install
npm run dev:docs

Open the URL printed by VitePress and select Examples in the top navigation.

Example asset ​

The live examples use apps/docs/public/models/orbital-device.glb. Replace the modelUrl default in copied code with your own public GLB or GLTF URL.

Released under the MIT License.