Widget
is available as a web component.
Installation
You can import the web component in two ways:1. NPM
Note: Ensure Node has sufficient memory allocated:
CopyNODE_OPTIONS=--max-old-space-size=32384
This can be added to npm scripts in package.json
, a .env file
, or used when running Node directly.2. Script Tag or CDN (Recommended)
Usage
Props are the exact same asWidgetProps
but you are required to pass them to the element via javascript/typescript.