Skip to content

Drawing & Annotations

Available since v0.23

drauu is built-in for drawing and annotation, should that help improve your presentation further.

To start, click the icon in the toolbar and start drawing. It's also available in the Presenter Mode. Drawings and annotations you created will be synced automatically across all instances in real time.

Use with Stylus Pen

When using a stylus pen on a tablet (for example, iPad with Apple Pencil), Slidev will intelligently detect the input type. You can directly draw on your slides with the pen without turning on the drawing mode, while having your fingers or mouse control the navigation.

Persist Drawings

The following frontmatter configuration allows you to persist your drawings as SVGs under .slidev/drawings directory and have them inside your exported PDF or hosted site.

md
---
drawings:
  persist: true
---

Disable Drawings

Entirely:

md
---
drawings:
  enabled: false
---

Only in Development:

md
---
drawings:
  enabled: dev
---

Only in Presenter Mode:

md
---
drawings:
  presenterOnly: true
---

Drawing Syncing

By default, Slidev syncs up your drawings across all instances. If you are sharing your slides with others, you might want to disable the syncing via:

md
---
drawings:
  syncAll: false
---

With this config, only the drawing from the presenter instance will be able to sync with others.

Released under the MIT License.