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

Layout

My presentation title

Hello World πŸš€

0%0/0

Installation

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="https://unpkg.com/@deckdeckgo/slide-title@latest/dist/deckdeckgo-slide-title/deckdeckgo-slide-title.esm.js"></script> <script nomodule="" src="https://unpkg.com/@deckdeckgo/slide-title@latest/dist/deckdeckgo-slide-title/deckdeckgo-slide-title.js"></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

import '@deckdeckgo/slide-title';

Loader

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

Usage

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>

Slots

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

Attributes

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

AttributeTypeDefaultDescription
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

Example

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

Theming

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

CSS4 variableDefaultNote
--background
--color
--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