Slide: Title

The "Title" slide is a simple slide which display its title and content centered in the middle of the page.

This slide could be for example use for the very first and last slide of your presentation.

Table of contents


My presentation title

Hello World πŸš€


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-title

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-title';


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


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

<deckgo-deck> <deckgo-slide-title> <h1 slot="title">My presentation title</h1> <p slot="content"> Hello World πŸš€ </p> </deckgo-slide-title> </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-title> <h1 slot="title">My presentation title</h1> <ul slot="content"> <li>Hello</li> <li>World</li> <li>πŸš€</li> </p> </deckgo-slide-title> </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
--zIndex1The z-index of the slide