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

Layout

Something related to my topic

Cool beans

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

import '@deckdeckgo/slide-content';

Loader

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

Usage

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>

Slots

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

Notes

Optionally a slot notes could be use to add some notes regarding the particular slide. These will be automatically displayed in the remote control.

If you are using the DeckDeckGo starter kit and wish to make your notes accessible to anyone, you will need to mark them with the attribute show.

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

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