1.0.4 • Published 1 year ago

slidev-addon-excalidraw v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

slidev-addon-excalidraw

show excalidraw in slidev

example

---
layout: center
---
<div class="flex flex-col items-center">

# slidev-addon-excalidraw

<Excalidraw
  drawFilePath="./example.excalidraw.json"
  class="w-[600px]"
  :darkMode="false"
  :background="false"
/>

</div>

Installation

pnpm add slidev-addon-excalidraw

Usage

  • Define this addon in frontmatter
addons:
    - slidev-addon-excalidraw
  • or in package.json
 "slidev": {
    "addons": [
      "slidev-addon-excalidraw"
    ]
  },

Components

Excalidraw

!NOTE excalidraw file must be in public, and drawFilePath must be relative to your Public Base Path.

<Excalidraw
  drawFilePath="./example.excalidraw.json"
  class="w-[600px]"
  :darkMode="false"
  :background="false"
/>

Options

NameTypeDefaultDescription
drawFilePathstringundefinedThe path to the excalidraw json file. It must be relative to your Public Base Path.
darkModebooleanfalseWhether to use dark mode.
backgroundbooleanfalseWhether to show the background.
1.0.4

1 year ago

1.0.4-dev.2

1 year ago

1.0.4-dev.1

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago