0.1.0 • Published 3 years ago

react-augumented-reality-widget v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

react-augmented-reality-widget

A React component for integrating Mobi Lab's AR widget to a react app.

Contact Mobi Lab for more information.

Table of content

Dependency

Insert following script to <body> of your project's public/index.html.

<script src="https://arwidget.lab.mobi/ar-widget-dep.min.js"></script>

Usage

import { ArWidget } from "react-augmented-reality-widget";

<ArWidget
  product={"83e4c320-8360-4ec3-b672-27751218707e"}
  audio={true}
  lang={"en"}
  width={360}
  height={48}
/>;

Props

Required

PropDescriptionTypeDefault
productUUID of your AR product. Contact Mobi Lab to get yoursStringRequired
audioIf your product supports audio, you can enable or disable it in propsbooleanfalse
langWidget strings language codeStringen
widthWidth in pixels for the buttonNumber360
heightheight in pixels for the buttonNumber48

Demo

Check demo at Mobi Lab