An open API service indexing awesome lists of open source software.

https://github.com/kouts/vuepress-plugin-vue-example

A Vuepress plugin to display Vue components' live examples and source code inside documentation.
https://github.com/kouts/vuepress-plugin-vue-example

code example vue vuepress vuepress-plugin

Last synced: 11 months ago
JSON representation

A Vuepress plugin to display Vue components' live examples and source code inside documentation.

Awesome Lists containing this project

README

          

# vuepress-plugin-vue-example

---

:fire: **HEADS UP!** You're currently looking at vuepress-plugin-vue-example `next` branch for **Vuepress 2**.

If you're looking for a Vuepress 1 compatible version of vuepress-plugin-vue-example, [please check out the `master` branch](https://github.com/kouts/vuepress-plugin-vue-example/tree/master).

---

A [Vuepress 2](https://v2.vuepress.vuejs.org/) plugin to display Vue components' live examples and source code inside documentation.

## Features

- Easy to use, with just a single `vue-example` tag inside `.md` or `.vue` files
- Uses `prismjs` for syntax highlighting
- Displays a fully-working live example
- Splits source code in separate sections for `template` `script` and `style`
- Capability to strip comments from the source code
- Capability to add custom code before each section using slots
- Includes expand/collapse feature in order to save space

## Browsers support

| [Edge](http://godban.github.io/browsers-support-badges/)
Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Opera](http://godban.github.io/browsers-support-badges/)
Opera |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

Documentation and examples
https://next--vuepress-plugin-vue-example.netlify.app/