Slidev component to integrate with Demo Time a Visual Studio Code extension to simplify coding demos.
npm install slidev-addon-demotime
Declare the addon in your front matter of the slidex.md
file:
---
addons:
- slidev-addon-demotime
---
---
clicks: 1 // Define the click count
---
# Slide 1
This slide triggers the first demo after **1** click.
<demotime
click="1"
id="demo1" />
Important: The
clicks
property in the frontmatter is required, otherwise the slide will not trigger the demo.
click
: The number of clicks to trigger the demo.id
: The demo ID to trigger.port
: The port where the Demo Time server is running. Default is3710
.host
: The host where the Demo Time server is running. Default ishttp://localhost
.image
: The image to show in the slide. Default is the Demo Time logo.