@threlte/xr

<ARButton>

<ARButton /> is an HTML <button /> that can be used to init an AR 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.