Layouts â
This page lists all the built-in layouts provided by Slidev. These layouts can be used via the layout option in the frontmatters of your slides.
Note that đ Theme & Addons may provide additional layouts or override the existing ones. To add your own layouts, see đ Writing Layouts.
center â
Displays the content in the middle of the screen.
cover â
Used to display the cover page for the presentation, may contain the presentation title, contextualization, etc.
default â
The most basic layout, to display any kind of content.
end â
The final page for the presentation.
fact â
To show some fact or data with a lot of prominence on the screen.
full â
Use all the space of the screen to display the content.
image-left â
Shows an image on the left side of the screen, the content will be placed on the right side.
Usage â
---
layout: image-left
# the image source
image: /path/to/the/image
# a custom class name to the content
class: my-cool-content-on-the-right
---image-right â
Shows an image on the right side of the screen, the content will be placed on the left side.
Usage â
---
layout: image-right
# the image source
image: /path/to/the/image
# a custom class name to the content
class: my-cool-content-on-the-left
---image â
Shows an image as the main content of the page.
Usage â
---
layout: image
# the image source
image: /path/to/the/image
---You can change the default background size (cover) by adding the backgroundSize attribute:
---
layout: image
image: /path/to/the/image
backgroundSize: contain
------
layout: image-left
image: /path/to/the/image
backgroundSize: 20em 70%
---iframe-left â
Shows a web page on the left side of the screen, the content will be placed on the right side.
Usage â
---
layout: iframe-left
# the web page source
url: https://github.com/slidevjs/slidev
# a custom class name to the content
class: my-cool-content-on-the-right
---iframe-right â
Shows a web page on the right side of the screen, the content will be placed on the left side.
Usage â
---
layout: iframe-right
# the web page source
url: https://github.com/slidevjs/slidev
# a custom class name to the content
class: my-cool-content-on-the-left
---iframe â
Shows a web page as the main content of the page.
Usage â
---
layout: iframe
# the web page source
url: https://github.com/slidevjs/slidev
---intro â
To introduce the presentation, usually with the presentation title, a short description, the author, etc.
none â
A layout without any existing styling.
quote â
To display a quotation with prominence.
section â
Used to mark the beginning of a new presentation section.
statement â
Make an affirmation/statement as the main page content.
two-cols â
Separates the page content in two columns.
Usage â
---
layout: two-cols
---
# Left
This shows on the left
::right::
# Right
This shows on the righttwo-cols-header â
Separates the upper and lower lines of the page content, and the second line separates the left and right columns.
Usage â
---
layout: two-cols-header
---
This spans both
::left::
# Left
This shows on the left
::right::
# Right
This shows on the right