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

Commit 6c57a14

Browse files
doc(#50): embedded attribute to embed the deck in any container
1 parent 6dc1f41 commit 6c57a14

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/features/navigation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Furthermore than the default swiping, the [DeckDeckGo] deck expose the following
1818
- [Pager](#pager)
1919
- [Show or hide](#show-or-hide)
2020
- [Customization](#customization)
21+
- [Size]
2122

2223
## Navigation
2324

@@ -139,4 +140,23 @@ The following style options are available to style the pager:
139140
| --pager-position-left | |
140141
| --pager-position-right | |
141142

143+
## Size
144+
145+
Per default, the [DeckDeckGo] deck will use the all `window` size respectively width and height.
146+
147+
However, it is possible to include or use [DeckDeckGo] in any container, for that purpose you would only need to set the attriuted `embedded` to `true`.
148+
149+
```
150+
<div style="width: 500px; height: 400px;">
151+
<deckgo-deck embedded="true">
152+
<deckgo-slide-title>
153+
<h1 slot="title">My presentation title</h1>
154+
<p slot="content">
155+
Hello World 🚀
156+
</p>
157+
</deckgo-slide-title>
158+
</deckgo-deck>
159+
</div>
160+
```
161+
142162
[DeckDeckGo]: https://deckdeckgo.com

0 commit comments

Comments
 (0)