<media-fullscreen-button>

Button to toggle fullscreen viewing

Enter fullscreen

<media-fullscreen-button></media-fullscreen-button>

Exit fullscreen

<media-fullscreen-button media-is-fullscreen></media-fullscreen-button>

Alternate content

Enter Exit Enter Exit
<media-fullscreen-button media-paused>
  <span slot="enter">Enter</span>
  <span slot="exit">Exit</span>
</media-fullscreen-button>
<media-fullscreen-button media-is-fullscreen>
  <span slot="enter">Enter</span>
  <span slot="exit">Exit</span>
</media-fullscreen-button>

None

NameDefault TypeDescription
entersvgAn element shown when the media is not in fullscreen and pressing the button will trigger entering fullscreen
exitsvgAn element shown when the media is in fullscreen and pressing the button will trigger exiting fullscreen
<media-fullscreen-button>
  <svg slot="enter"><!-- your SVG --></svg>
  <svg slot="exit"><!-- your SVG --></svg>
</media-fullscreen-button>

See our styling docs