
Description
vue-live is a small Vue component that gives you a live code playground in the browser. You pass it a Vue template or script, and it renders the result while readers edit the code and see changes right away. It is inspired by react-live. Props set the starting code, a custom layout, and the components, directives and requires that examples may use, so demos can rely on your own parts. Events report compile and evaluation errors and successful runs, which lets you show clear messages in your own UI. The default install targets Vue 3 and later, and the README gives a separate install line for Vue 2. Developers who write component documentation or showcases use it so readers can try code directly on the page. The README links a demo that shows the alternative syntaxes.…
Highlights
- Live editing of Vue code in the browser
- Custom layout for examples
- Your own components available in demos
- Error and success events
- Vue 2 and Vue 3 install options
Ratings & Reviews
No ratings yet
Be the first to rate vue-live.
People also visit
vue-live FAQ
What does vue-live do?
It is a playground component that renders Vue code live and lets people edit it on the page.
Does it work with Vue 2?
Yes. The README gives a separate install for Vue 2. The default version is for Vue 3 and later.
How are errors shown?
Compile and script errors appear in a box in the preview. The error event lets you add extra help, and the success event fires when the code runs.
Can examples use my own components?
Yes. Register them through the components, directives and requires props.
What are the best vue-live alternatives?
Popular alternatives to vue-live include vue-diagrams, PrimeVue and vuesax. See all vue-live alternatives

















