- Preview
- Code
Installation
Usage
Import the modules (each callscustomElements.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.