Slide: Content

The "Content" slide is a simple slide which display its title and content aligned to the start of the page.

This slide could be for example use for the every slides of your presentation where you would like to display content related to your talk.

Table of contents


Something related to my topic

Cool beans


This template could be added to your presentation using the following methods.

If you are using our Starter Kit, no need to worry about this, this template is included, therefore you could skip the "Installation" chapter.

From a CDN

It's recommended to use unpkg if you want to use this template from a CDN. To do so, add the following include script in the main HTML file of your project:

<script type="module" src=""></script>

From NPM

To install this template in your project from npm run the following command:

npm install @deckdeckgo/slide-content

Framework integration

The Stencil documentation provide examples of framework integration for Angular, React, Vue and Ember.

That being said, commonly, you might either import or load it:


import '@deckdeckgo/slide-content';


import { defineCustomElements as deckDeckGoSlideElement } from '@deckdeckgo/slide-content/dist/loader'; deckDeckGoSlideElement();


The "Content" slide's Web Component could be integrated using the tag <deckgo-slide-content/>.

<deckgo-deck> <deckgo-slide-content> <h1 slot="title">Something related to my topic</h1> <p slot="content"> Cool beans </p> </deckgo-slide-content> </deckgo-deck>


Both slots title and content are optional. Without providing one of them, the page will remain empty.


This component offers the following options which could be set using attributes:

custom-backgroundbooleanfalseIf you would provide a background for the all deck and a specific one for this slide, set this option to true
custom-actionsbooleanfalseIf you would provide actions for the all deck and a specific one for this slide, set this option to true


<deckgo-deck> <deckgo-slide-content> <h1 slot="title">Something related to my topic</h1> <ul slot="content"> <li>Cool</li> <li>Beans</li> </ul> </deckgo-slide-content> </deckgo-deck>


The following theming options will affect this component if set on its host or parent.

CSS4 variableDefaultNote
--slide-padding-top16pxPadding top of the all slide
--slide-padding-end32pxPadding right of the all slide
--slide-padding-bottom16pxPadding bottom of the all slide
--slide-padding-start32pxPadding left of the all slide
--slide-content-justify-contentflex-startJustify the content of the slide
--zIndex1The z-index of the slide