# vuepress-plugin-code-preview

A vuepress plugin for codesandbox embed code preview

npm GitHub stars GitHub license

# Install

# install dependencies
npm i vuepress-plugin-code-preview -D

# or use yarn
yarn add vuepress-plugin-code-preview -D

# Usage

Write vuepress config

module.exports = {
  plugins: ['code-preview']
}

Write article

<code-preview embed-url="<url>" />

# Options

# embedUrl

Copy codesandbox embed url to it.

  • type: String
  • required: true
  • default: null

# embedBox

Code embedding platform.

  • type: String
  • required: fasle
  • default: codesandbox

# License

MIT.

Made with ❤️ by Ahmad Mostafa - @z3by