Skip to main content

Installation

Usage

The bar fills to currentTime / duration, read from the surrounding PlayerProvider. Pressing and dragging emits a sequence of events built with newEvent. Each one carries the pressed ratio (0–1):
  • PressedProgressBar: on press, to seek to a position.
  • ScrubbedProgressBar: while dragging.
  • FinishedScrubbingProgressBar: on release.
Drag tracking is attached to window (mouse and touch), so scrubbing keeps working even when the pointer leaves the bar. The component grows to fill its container (grow). Place it in a flex row alongside the other controls.

Reference