Slide Layout โ
Layouts in Slidev are used to define the structure for each slide. They are Vue components that wrap the content of the slides.
Using Layouts โ
To use a layout, you can specify it in the frontmatter of the slide:
md
---
layout: quote
---
A quote from someoneBy default, the layout of the first slide is cover, and the rest are default.
The layouts are loaded in the following order, and the last one loaded will override the previous ones:
- default layouts. See Built-in Layouts.
- layouts provided by the theme
- layouts provided by the addons
- custom layouts in the
layoutsdirectory
See also:
โจ Slot Sugar for Layouts
Writing Layouts โ
๐ Writing Layouts