Looking for the old docs? Go here

Hooks

useChapterOptions

This hook is used to retrieve the current chapter options.

tsx
    
    
INFO

The setProgressVar function will set a --progress (played percent) CSS variable to help with styling each chapter option.