By combining the forces of model viewer and Chakra UI, I'm creating React components to efficiently deliver AR capabalities to your web apps.
Pass the same attributes as you'd with model viewer. This is illustrated in the examples below.
<WithQRCode
src={`${SampleModel.glbLink}&title=${SampleModel.title}&link=${SampleModel.link}`}
ios-src={SampleModel.usdzLink}
ar-modes="scene-viewer quick-look"
ar
ar-scale="auto"
/><ARCard
src={`${SampleModel.glbLink}&title=${SampleModel.title}&link=${SampleModel.link}`}
ios-src={SampleModel.usdzLink}