---
source: https://iinventedlight.com/library/notes/vue-slots.md
title: "Vue slots let a parent pass template content into a child"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC BY 4.0, text only (vuejs/docs); MIT (vuejs/core); prose restates cited source lines in own words"
license_family: vue-docs-ccby
attribution: "Summary by iinventedlight (AI-assisted). Sources: Vue.js docs, Slots, CC BY 4.0, text only (vuejs/docs); Vue.js core, runtime-core componentSlots, MIT (vuejs/core). Notices: Vue.js documentation (vuejs/docs): Copyright (c) 2019-present, Yuxi (Evan) You and Vue documentation contributors; CC BY 4.0, text only (https://raw.githubusercontent.com/vuejs/docs/main/LICENSE). Vue.js core (vuejs/core): Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors; MIT (https://raw.githubusercontent.com/vuejs/core/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-10
status: published
approved_by: "Cole Withington, 2026-11-10 10:08 PT, Librarian chat widget t33s2: \"Yes, publish all 25 Django and Vue drafts\""
checked_on: 2026-11-10
as_of: 2026-11-10
confidence: medium
untested: "No Vue app was run for this note; only the fetched documentation and source files were read."
category: coding-references
topic_area: "code-web: Vue slots"
tags: [vue, slots, components, template]
client: Librarian
sources:
  - id: S1
    title: "Slots"
    publisher: Vue.js docs
    url: https://vuejs.org/guide/components/slots.html
    accessed: 2026-11-10
    license: "CC BY 4.0"
  - id: S2
    title: "runtime-core componentSlots"
    publisher: Vue.js core source
    url: https://github.com/vuejs/core/blob/main/packages/runtime-core/src/componentSlots.ts
    accessed: 2026-11-10
    license: "MIT"
---
# Vue slots let a parent pass template content into a child

**Answer:** Components can accept props, but they can also accept template content. A parent may pass a template fragment to a child, and the child renders that fragment in its own template.

## Outlets

The `<slot>` element is a slot outlet: the place where the parent-provided slot content is rendered.

## Runtime

In runtime-core, the slots object tracks the slot owner instance (attached during `normalizeChildren` when the component vnode is created). Compiler-generated slots also carry an optimization hint on the slots object itself. When default slot content is not a function, Vue warns and still normalizes it onto `instance.slots.default`.

## See also

- [vue-template-syntax](https://iinventedlight.com/library/notes/vue-template-syntax/)
- [vue-provide-inject](https://iinventedlight.com/library/notes/vue-provide-inject/)
- [vue-props](https://iinventedlight.com/library/notes/vue-props/)

## Claims

- id: C1
  claim: A slot element is an outlet for parent-provided content.
  source: S1
  evidence: "The `<slot>` element is a **slot outlet** that indicates where"

- id: C2
  claim: A parent can pass a template fragment to a child component.
  source: S1
  evidence: "we may want to pass a template fragment to a child component,"

- id: C3
  claim: Runtime-core tracks the slot owner instance on the slots object.
  source: S2
  evidence: "for tracking slot owner instance. This is attached during"

- id: C4
  claim: Non-function default slot content is normalized onto instance.slots.default.
  source: S2
  evidence: "instance.slots.default = () => normalized"

## Sources

- [S1] Slots. Vue.js docs. https://vuejs.org/guide/components/slots.html . License: CC BY 4.0. Accessed 2026-11-10.

- [S2] runtime-core componentSlots. Vue.js core source. https://github.com/vuejs/core/blob/main/packages/runtime-core/src/componentSlots.ts . License: MIT. Accessed 2026-11-10.


License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources and notices: Vue.js documentation (vuejs/docs): Copyright (c) 2019-present, Yuxi (Evan) You and Vue documentation contributors; CC BY 4.0, text only (https://raw.githubusercontent.com/vuejs/docs/main/LICENSE). Vue.js core (vuejs/core): Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors; MIT (https://raw.githubusercontent.com/vuejs/core/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
