Skip to content

Getting Started ​

Installing VueJS Tour is a straightforward process. This guide will walk you through the installation process and help you set up your first tour.

Try it Online ​

You can try VueJS Tour directly in your browser on StackBlitz.

Installation ​

Prerequisites ​

  • Node.js version 20 or higher.
  • Vue 3.x or higher.
  • Terminal for installing VueJS Tour.

VueJS Tour can be installed using npm, pnpm, yarn, or bun. The following command will install VueJS Tour in your project.

sh
npm add @globalhive/vuejs-tour
sh
pnpm add @globalhive/vuejs-tour
sh
yarn add @globalhive/vuejs-tour
sh
bun add @globalhive/vuejs-tour

Basic Setup ​

In the following example, we are importing the VTour component from VueJS Tour and using it in the App.vue file. We are also importing the default styles of VueJS Tour.

vue
<script setup lang='ts'>
    import HelloWorld from './components/HelloWorld.vue';
    import { VTour } from '@globalhive/vuejs-tour';
    import '@globalhive/vuejs-tour/dist/style.css';
</script>

<template>
    <VTour/>// [!code ++]
    <div>
        <a href="https://vitejs.dev" target="_blank">
            <img src="/vite.svg" class="logo" alt="Vite logo" />
        </a>
        <a href="https://vuejs.org/" target="_blank">
            <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
        </a>
    </div>
    <HelloWorld msg="Vite + Vue" />
</template>

Everything is now set up, and you can start creating your first tour.

Released under the MIT License.