PlayUI can be installed and used as a composed, instantiable module. Its core functions may also be imported and used as standalone modules.
Add the following script tag to your page to include the instantiable edition of PlayUI.
<script src="https://unpkg.com/@web-native-js/play-ui/dist/main.js"></script><script>// The above tag loads PlayUI into a global "WebNative" object.const $ = window.WebNative.PlayUI;</script>
$ npm i -g npm$ npm i --save @web-native-js/play-ui
The installed package is designed to be initialized with the window object of the current browser or server evironment. To do this, import the
ENV object and assign the window object to it, then call the initializer.
Initialize the Constructible Build - Initialize the module below for the constructible build of PlayUI.
Initialize Individual Utility - Import a specific utility to your project. Each utility has been documented with their specific installation path. Here are examples.
Visit the API reference.