Components are reusable elements based on HTML components and the Lit framework.
<youtube-embed-consent>
is a component to show a YouTube video where the user must give their consent before connecting to the YouTube servers. This is to comply with The Document Foundation’s privacy policy.
Download this two scripts: Lit core & YouTubeEmbedConsent.
Use something similar to the next template:
<!DOCTYPE html>
<html>
<head>
<script type="module" src="youtube-embed-consent.js"></script>
</head>
<body>
<div style="width: 600px">
<youtube-embed-consent videoid="TGH8MhtbrNU" placeholderimage="preview25_2.jpg"></youtube-embed-consent>
</div>
</body>
</hmtl>