Skip to content

Commit

Permalink
fix(player): include slider chapters css vars docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Nov 14, 2023
1 parent 1322167 commit b38f09c
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { TimeSlider } from './time-slider';
*
* @docs {@link https://www.vidstack.io/docs/player/components/sliders/slider-chapters}
*/
export class SliderChapters extends Component<SliderChaptersProps> {
export class SliderChapters extends Component<SliderChaptersProps, {}, SliderChaptersCSSVars> {
static props: SliderChaptersProps = {
disabled: false,
};
Expand Down Expand Up @@ -323,3 +323,14 @@ export interface SliderChaptersProps {
*/
disabled: boolean;
}

export interface SliderChaptersCSSVars {
/**
* The percentage of the chapter that is filled.
*/
readonly 'chapter-fill': string;
/**
* The percentage of the chapter that has been buffered.
*/
readonly 'chapter-progress': string;
}

0 comments on commit b38f09c

Please sign in to comment.