- Preview
- Code
Installation
Usage
Import the modules (each callscustomElements.define), then use the elements. Nest the image inside a <bw-player-provider>.
<bw-feature-image> finds its nearest
<bw-player-provider> ancestor, reads content
and contentIndex from it, and renders the current item’s imageUrl as an
<img> (using its title as the alt text), updating on every player event.
It renders nothing when the item has no image, so it’s safe to drop in
unconditionally.