@threlte/xr

<VRButton>

<VRButton /> is an HTML <button /> that can be used to init a VR session. It will also display info about browser support.

Component Signature

Events

name
payload
description

click
CustomEvent<'unsupported' | 'insecure' | 'blocked' | 'supported'>
Fired when a user clicks the VR button.

error
CustomEvent<Error>
Fired when an enter / exit session error occurs.