8000 GitHub - jonataw/vuelr: Vuelr is a component for editing and previewing Vue components or templates in your browser in realtime.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jonataw/vuelr

Repository files navigation

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.

About

Vuelr is a component for editing and previewing Vue components or templates in your browser in realtime.

Topics

Resources

License

Stars

Watchers

Forks

0