<media-pip-button>
Button to toggle picture-in-picture mode of the video.
Attributes
Section titled AttributesNone
Slots
Section titled SlotsName | Default Type | Description |
---|---|---|
enter | svg | An element shown when the media is not in PIP mode and pressing the button will trigger entering PIP mode |
exit | svg | An element shown when the media is in PIP and pressing the button will trigger exiting PIP mode |
Example
Section titled Example<media-pip-button>
<svg slot="enter"><!-- your SVG --></svg>
<svg slot="exit"><!-- your SVG --></svg>
</media-pip-button>
Styling
Section titled StylingSee our styling docs