vuelr
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Vuelr

npm license downloads

Vuelr is a component for live rendering Vue.js components and templates in the browser.

Demo | Documentation

Installation

Vuelr is available as an npm package.

npm install vuelr

Import Vuelr in your Vue entry file:

import { createApp } from 'vue';
import { createVuelr } from 'vuelr';

createApp(App).use(createVuelr()).mount('#app');

Usage

<template>
  <Vuelr :code="code" v-slot="{ target }">
    <div :id="target" />
    <textarea v-model="code" />
  </Vuelr>
</template>

<script lang="ts">
export default defineComponent({
  setup() {
    return {
      code: ref('<p>Hello world!</p>'),
    };
  },
});
</script>

License

This project is licensed under the MIT license.

Package Sidebar

Install

npm i vuelr

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • jonataw