mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
21 lines
609 B
TypeScript
21 lines
609 B
TypeScript
'use client';
|
|
|
|
import type { SliderState } from '@videojs/core';
|
|
|
|
import type { UIComponentProps } from '../../utils/types';
|
|
import { createContextPart } from '../create-context-part';
|
|
import { useSliderContext } from './context';
|
|
|
|
export interface SliderFillProps extends UIComponentProps<'div', SliderState> {}
|
|
|
|
/** Displays the filled portion from start to the current value. */
|
|
export const SliderFill = createContextPart<SliderFillProps, SliderState>({
|
|
displayName: 'SliderFill',
|
|
tag: 'div',
|
|
useContext: useSliderContext,
|
|
});
|
|
|
|
export namespace SliderFill {
|
|
export type Props = SliderFillProps;
|
|
}
|