Frameworks

Vue.js Cheat Sheet

Print-ready cheat sheet for Vue.js, organized for fast lookup, study, and desk-side use

Source
Vue.js Documentation (vuejs.org)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • Template Syntax
  • Reactivity
  • Computed & Watchers
  • Components
  • Props & Events
  • Slots
  • Composition API
  • Router (Vue Router)
  • Lifecycle Hooks
  • Lists & Conditionals
  • Form Handling

Text & Expressions

<span>{{ message }}</span>
<span>{{ count + 1 }}</span>
<span>{{ ok ? 'Yes' : 'No' }}</span>
<span v-html="rawHtml"></span>

Directives

{{ expr }}Text interpolation
v-bind:attr / :attrBind attribute to expression
v-on:event / @eventAttach event listener
v-modelTwo-way binding (forms)
v-if / v-else-if / v-elseConditional rendering
v-showToggle display CSS (stays in DOM)
v-forList rendering
v-slot / #nameNamed slot content

Attribute Binding

<img :src="imageUrl" :alt="desc" />
<div :class="{ active: isActive }"></div>
<div :style="{ color: textColor }"></div>
<button :disabled="isLoading">Submit</button>

Download the full cheat sheet for all sections, formatted for print

Download PDF

Downloads

Choose the treatment that matches how you read