Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the element inside a <bw-player-provider>.
<bw-call-to-action> finds its nearest
<bw-player-provider> ancestor and reads
callToAction from it, updating on every player event. When the source has no
call-to-action configured, it falls back to "Listen to this article". Edit
the fallback or the markup to match your UI.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.
Reference