Skipping a Tour
The Skip button is displayed in the tour by default. You can hide it by customizing the action buttons or by using the hideSkip
prop in the VTour
component.
Using the hideSkip
prop
To hide the Skip button, you can use the hideSkip
prop in the VTour
component.
vue
<script setup lang='ts'>
// ...
const steps = [...];
</script>
<template>
<VTour :steps="steps" autoStart saveToLocalStorage='step'/>
<VTour :steps="steps" autoStart hideSkip/>
...
</template>
Target
Customizing the action buttons
You can also customize the action buttons by using the actions
slot.
vue
<template>
<VTour :steps="steps" autoStart hideSkip/>
<VTour :steps="steps" autoStart>
<template #actions="{ lastStep, nextStep, endTour, _CurrentStep, getNextLabel, props }">
<div class="vjt-actions">
<button v-if="_CurrentStep.lastStep < _CurrentStep.currentStep" type="button" @click.prevent="lastStep()" v-text="props.buttonLabels?.back || 'Back'"></button>
<button type="button" @click.prevent="nextStep()" v-text="getNextLabel"></button>
</div>
</template>
</VTour>
</template>
INFO
The Skip button is displayed by default.