Skip to content
masterclass Buddy

Vue.js · Concept

Slots

Slots let a parent pass template content into a child component. The child renders it with a slot outlet and can support fallback content, named slots, and slot props.

Last updated

Syntax

<slot />
<slot name="header" />
<template #header>...</template>
<template #item="{ value }">...</template>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • <slot>
  • v-slot
  • $slots
  • Named Slots
  • Scoped Slots
  • Dynamic Slot Names
  • Renderless Components

Source: Slots | Vue.js. Checked 2026-11-03.