<media-play-button>

Button to toggle media playback.

Default

<media-play-button media-paused></media-play-button>

Pause

<media-play-button></media-play-button>

Alternate content

Play Pause Play Pause
<media-play-button media-paused>
  <span slot="play">Play</span>
  <span slot="pause">Pause</span>
</media-play-button>
<media-play-button>
  <span slot="play">Play</span>
  <span slot="pause">Pause</span>
</media-play-button>

None

NameDefault TypeDescription
playsvgAn element shown when the media is paused and pressing the button will start media playback
pausesvgAn element shown when the media is playing and pressing the button will pause media playback

See our styling docs