Sliders
Time Slider
This component is used to create a range input for controlling the current time of playback.
API Reference
Section titled API ReferenceRoot
Section titled RootHTMLAttributes
Ref<TimeSliderInstance>
Versatile and user-friendly input time control designed for seamless cross-browser and provider compatibility and accessibility with ARIA support. It offers a smooth user experience for both mouse and touch interactions and is highly customizable in terms of styling. Users can effortlessly change the current playback time within the range 0 to seekable end.
Props
Section titled PropsState
Section titled StateCallbacks
Section titled CallbacksInstance
Section titled InstanceCSS Variables
Section titled CSS VariablesData Attributes
Section titled Data AttributesChapters
Section titled ChaptersHTMLAttributes
Ref<HTMLDivElement>
Used to create predefined sections within a time slider interface based on the currently active chapters text track.
Props
Section titled PropsCallbacks
Section titled CallbacksChapterTitle
Section titled ChapterTitleRefAttributes
Ref<HTMLElement>
Used to display the active cue text based on the slider value and preview value.
Props
Section titled PropsProgress
Section titled ProgressRefAttributes
Ref<HTMLElement>
Visual element inside the slider that serves as a horizontal or vertical bar, providing a visual reference for the range of playback that has buffered/loaded.
Props
Section titled PropsVideo
Section titled VideoHTMLAttributes<HTMLVideoElement>
Ref<HTMLVideoElement>
Used to load a low-resolution video to be displayed when the user is hovering over or dragging the time slider. The preview video will automatically be updated to be in-sync with the current preview position, so ensure it has the same length as the original media (i.e., same duration).
Props
Section titled PropsCallbacks
Section titled CallbacksData Attributes
Section titled Data AttributesThumb
Section titled ThumbRefAttributes
Ref<HTMLElement>
Purely visual element used to display a draggable handle to the user for adjusting the value on the slider component.
Props
Section titled PropsTrack
Section titled TrackRefAttributes
Ref<HTMLElement>
Visual element inside the slider that serves as a horizontal or vertical bar, providing a visual reference for the range or values that can be selected by moving the slider thumb along it. Users can interact with the slider by dragging the thumb along the track to set a specific value.
Props
Section titled PropsTrackFill
Section titled TrackFillRefAttributes
Ref<HTMLElement>
Portion of the slider track that is visually filled or highlighted to indicate the selected or currently chosen range or value. As the slider thumb is moved along the track, the track fill dynamically adjusts to visually represent the portion of the track that corresponds to the selected value or range, providing users with a clear visual indication of their selection.
Props
Section titled PropsPreview
Section titled PreviewHTMLAttributes
Ref<HTMLElement>
Used to provide users with a real-time or interactive preview of the value or selection they are making as they move the slider thumb. This can include displaying the current pointer value numerically, or displaying a thumbnail over the time slider.
Props
Section titled PropsData Attributes
Section titled Data AttributesValue
Section titled ValueHTMLAttributes
Ref<HTMLElement>
Displays the specific numeric representation of the current or pointer value of the slider. When a user interacts with a slider by moving its thumb along the track, the slider value changes accordingly.
Props
Section titled PropsSteps
Section titled StepsRefAttributes
Ref<HTMLElement>
Visual markers that can be used to indicate value steps on the slider track.