- Preview
- Code
Installation
Usage
Import the modules (each callscustomElements.define), then use the elements. Nest the title inside a <bw-player-provider>.
<bw-content-title> finds its nearest
<bw-player-provider> ancestor and reads
content and contentIndex from it, updating on every player event. It
renders the current item’s title (content[contentIndex].title) as its text
content.