Works with HTC VIVE and Oculus touch in a WebVR enabled browser and desktop with aframe-mouse-cursor-component.
Basic usage
<head><title>My A-Frame Scene</title><scriptsrc="https://aframe.io/releases/0.7.0/aframe.min.js"></script><!-- Include component script into your project along with A-Frame. --><scriptsrc="https://rawgit.com/caseyyee/aframe-ui-widgets/master/dist/aframe-ui-widgets.min.js"></script></head><body><a-scene><!-- Adds hand controls --><a-entityhand-controls="left"></a-entity><a-entityhand-controls="right"></a-entity><!-- Can also be controlled used with cursor --><a-camera><a-cursor></a-cursor></a-camera><!-- Adds UI button widget --><a-entityid="mybutton" ui-button></a-entity></a-scene><script>varmybutton=document.querySelector('#mybutton');mybutton.addEventListener('pressed',function(){// do stuff here.});</script></body>
Skinnable with custom styles
Using mixins, you can define a UI component styles.