Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit bc7e18a

Browse files
feat(#56): add a slot content on the youtube slide
1 parent 79b2425 commit bc7e18a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

webcomponents/core/src/components/slides/deckdeckgo-slide-youtube/deckdeckgo-slide-youtube.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class DeckdeckgoSlideYoutube implements DeckdeckgoSlide {
155155
render() {
156156
return <div class="deckgo-slide">
157157
<slot name="title"></slot>
158+
<slot name="content"></slot>
158159
<div class="deckgo-youtube-container">
159160
{this.renderVideo()}
160161
</div>

webcomponents/core/src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ <h2 slot="footer" style="--background: white; --color: blue;">Cool?</h2>
5050

5151
<deckgo-slide-youtube src="https://www.youtube.com/watch?v=oUOjJIfPIjw">
5252
<h1 slot="title">A 16/9 video</h1>
53+
<h2 slot="content">A subtitle or something about the video</h2>
5354
</deckgo-slide-youtube>
5455

5556
<deckgo-slide-content reveal="true">

0 commit comments

Comments
 (0)