@ppci/widget-wrapper
v1.2.8
Published
widget wrapper
Downloads
8
Keywords
Readme
Widget Wrapper
Table of contents
Installation
NPM
npm i @ppci/widget-wrapper
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/widget-wrapper'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/widget-wrapper/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/widget-wrapper/builds/legacy.min.js" />
<!-- Component -->
<widget-wrapper
error=${Object}
notification=${Object}
>
<div>Widget content over here</div>
</widget-wrapper>