v-if — conditional rendering (adds/removes from DOM). v-show — conditional display (toggles CSS display property).
v-if:
v-show:
1<template>2 <!-- v-if: element added/removed from DOM -->3 <div v-if="isVisible">Content with v-if</div>45 <!-- v-show: element always in DOM, CSS toggled -->6 <div v-show="isVisible">Content with v-show</div>7</template>
Performance considerations: