ReferenceDisplay
StatusIndicator
Display temporary visual feedback for keyboard and gesture actions
Import
Anatomy
Behavior
StatusIndicator displays feedback for actions emitted by a Hotkey or Gesture in the same player Container. It does not react to buttons, direct player-store changes, or media state changes on their own.
The input event arrives before its action is resolved. The indicator uses the media snapshot from that moment to predict the next visual status:
toggleSubtitles is ignored when the player reports that no captions or subtitles are available. Seek actions, toggleControls, playback-rate actions, and custom actions do not open this indicator.
Use actions to allow only some of the supported actions. Omitting it allows all supported actions.
Pass a readonly array of action names:
The indicator closes after closeDelay, which defaults to 800 milliseconds. A repeated handled action updates the current value and restarts that close timer without replaying the entry transition.
StatusIndicator.Root stops rendering after its close transition.
Styling
Use data-status to select an icon or other visual treatment, and use the transition attributes for entry and exit styles.
React renders standard DOM elements. Add a className to the Root:
Accessibility
StatusIndicator is visual feedback and does not create a live region. Keep every action available through keyboard-operable controls, and pair the player with StatusAnnouncer when state changes should be announced to screen readers. Do not make StatusIndicator.Value a live region.
Examples
Basic Usage
Focus the player, then press K to play or pause, M to mute, F for fullscreen, C for captions, or I for picture-in-picture.
Focus the player · K: play/pause · M: mute · F: fullscreen · C: captions · I: picture-in-picture