Loading...
Loading...
Compare original and translation side by side
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined---
theme: seriph
title: My Presentation
info: |
## Presentation Description
Multi-line info text
colorSchema: auto
highlighter: shiki
drawings:
persist: false
transition: slide-left
mdc: true
------
theme: seriph
title: My Presentation
info: |
## Presentation Description
Multi-line info text
colorSchema: auto
highlighter: shiki
drawings:
persist: false
transition: slide-left
mdc: true
------
layout: two-cols
class: my-custom-class
transition: fade
clicks: 3
disabled: false
hide: false
------
layout: two-cols
class: my-custom-class
transition: fade
clicks: 3
disabled: false
hide: false
---| Option | Type | Description |
|---|---|---|
| string | Slide layout name |
| string | CSS classes |
| string | Slide transition |
| string | Background image/color |
| number | Total clicks for slide |
| boolean | Disable slide |
| boolean | Hide from navigation |
| boolean | Preload heavy content |
| 选项 | 类型 | 描述 |
|---|---|---|
| string | 幻灯片布局名称 |
| string | CSS类 |
| string | 幻灯片过渡效果 |
| string | 背景图片/颜色 |
| number | 幻灯片的总点击次数 |
| boolean | 禁用幻灯片 |
| boolean | 在导航中隐藏 |
| boolean | 预加载大体积内容 |
undefinedundefinedundefinedundefined---
mdc: true
------
mdc: true
---This is [important text]{.text-red-500.font-bold}
This has a [tooltip]{title="Hover me!"}This is [important text]{.text-red-500.font-bold}
This has a [tooltip]{title="Hover me!"}::div{.flex.gap-4}
Content inside a flex container
::
::section{#my-section .bg-blue-100}
Section with ID and class
::::div{.flex.gap-4}
Content inside a flex container
::
::section{#my-section .bg-blue-100}
Section with ID and class
:::Icon{name="carbon:arrow-right" size="24"}
::Alert{type="warning"}
Warning message here
:::Icon{name="carbon:arrow-right" size="24"}
::Alert{type="warning"}
Warning message here
::- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
1. First
2. Second
3. Third- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
1. First
2. Second
3. Third<v-clicks>
- Appears first
- Appears second
- Appears third
</v-clicks><v-clicks depth="2">
- Parent 1
- Child 1.1
- Child 1.2
- Parent 2
- Child 2.1
</v-clicks><v-clicks>
- Appears first
- Appears second
- Appears third
</v-clicks><v-clicks depth="2">
- Parent 1
- Child 1.1
- Child 1.2
- Parent 2
- Child 2.1
</v-clicks>{width=400}{width=400}{.rounded-lg.shadow-xl}{.rounded-lg.shadow-xl}---
background: /images/cover.jpg
class: text-white
------
background: /images/cover.jpg
class: text-white
---undefinedundefined[Slidev Documentation](https://sli.dev)[Slidev Documentation](https://sli.dev)[Go to slide 5](/5)
[Go to slide with ID](#my-slide)[Go to slide 5](/5)
[Go to slide with ID](#my-slide)<a href="https://sli.dev" target="_blank">Open in new tab</a><a href="https://sli.dev" target="_blank">Open in new tab</a>| Feature | Supported |
|---------|-----------|
| Markdown | ✅ |
| Vue Components | ✅ |
| Animations | ✅ |
| Export | ✅ || Feature | Supported |
|---------|-----------|
| Markdown | ✅ |
| Vue Components | ✅ |
| Animations | ✅ |
| Export | ✅ |> This is a quote
> spanning multiple lines
> [!NOTE]
> GitHub-style callout> This is a quote
> spanning multiple lines
> [!NOTE]
> GitHub-style calloutContent above
---
Content below (this also creates a new slide!)<hr>Content above
<hr>
Content below (same slide)Content above
---
Content below (this also creates a new slide!)<hr>Content above
<hr>
Content below (same slide)This is <span class="text-red-500">red text</span> inline.This is <span class="text-red-500">red text</span> inline.<div class="grid grid-cols-2 gap-4">
<div>Column 1</div>
<div>Column 2</div>
</div><div class="grid grid-cols-2 gap-4">
<div>Column 1</div>
<div>Column 2</div>
</div>Here's how to write a code block:
```js
const x = 1
```Here's how to write a code block:
```js
const x = 1
```\---
This is not frontmatter
\---\---
This is not frontmatter
\------
layout: two-cols
------
layout: two-cols
---undefinedundefined---
layout: my-custom-layout
---
::header::
Header content
::default::
Main content
::footer::
Footer content---
layout: my-custom-layout
---
::header::
Header content
::default::
Main content
::footer::
Footer contentglobal-top.vue<template>
<div class="absolute top-0 left-0 p-4">
<img src="/logo.png" class="h-8" />
</div>
</template>global-top.vue<template>
<div class="absolute top-0 left-0 p-4">
<img src="/logo.png" class="h-8" />
</div>
</template>global-bottom.vue<template>
<div class="absolute bottom-0 right-0 p-4 text-sm">
© 2025 My Company
</div>
</template>global-bottom.vue<template>
<div class="absolute bottom-0 right-0 p-4 text-sm">
© 2025 My Company
</div>
</template>undefinedundefinedundefinedundefined🚀 Rocket launch!
👋 Hello world!🚀 Rocket launch!
👋 Hello world!<carbon-arrow-right class="inline" />
<mdi-github class="text-2xl" /><carbon-arrow-right class="inline" />
<mdi-github class="text-2xl" />------undefinedundefined
✓ **Correct**
```markdown
✓ **正确写法**
```markdown
❌ **Invalid YAML**
```yaml
---
theme:default
------
theme: default
---<!--
Notes first
-->
❌ **无效YAML**
```yaml
---
theme:default
------
theme: default
---<!--
Notes first
-->
✓ **Notes at end**
```markdown
✓ **备注在末尾**
```markdownundefinedundefined---
[FRONTMATTER: theme, layout, class, etc.]
------
[FRONTMATTER: theme, layout, class, etc.]
---undefinedundefined