@bbob/vue3
v4.2.0
Published
A BBCode to Vue3 Renderer part of @bbob
Downloads
700
Readme
@bbob/vue3
Converts @bbob/parser AST tree to Vue 3
npm i @bbob/vue3 @bbob/preset-vue
import { defineComponent } from 'vue'
import VueBbob from '@bbob/vue3';
Vue.use(VueBbob);
<template>
<div class="vue3">
<h2>Generated vue3 here</h2>
<bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
</div>
</template>
<script>
import Vue from 'vue'
import preset from '@bbob/preset-vue'
export default defineComponent({
name: 'App',
data() {
return {
bbcode: 'Text [b]bolded[/b] and [i]Some Name[/i]',
plugins: [
preset()
],
}
}
})
</script>