Skip to content

Commit b38f09c

Browse files
committed
fix(player): include slider chapters css vars docs
1 parent 1322167 commit b38f09c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/vidstack/src/components/ui/sliders/time-slider/slider-chapters.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { TimeSlider } from './time-slider';
2929
*
3030
* @docs {@link https://www.vidstack.io/docs/player/components/sliders/slider-chapters}
3131
*/
32-
export class SliderChapters extends Component<SliderChaptersProps> {
32+
export class SliderChapters extends Component<SliderChaptersProps, {}, SliderChaptersCSSVars> {
3333
static props: SliderChaptersProps = {
3434
disabled: false,
3535
};
@@ -323,3 +323,14 @@ export interface SliderChaptersProps {
323323
*/
324324
disabled: boolean;
325325
}
326+
327+
export interface SliderChaptersCSSVars {
328+
/**
329+
* The percentage of the chapter that is filled.
330+
*/
331+
readonly 'chapter-fill': string;
332+
/**
333+
* The percentage of the chapter that has been buffered.
334+
*/
335+
readonly 'chapter-progress': string;
336+
}

0 commit comments

Comments
 (0)