Skip to content

Instantly share code, notes, and snippets.

View mchoiruln's full-sized avatar
🎯
Focusing

mchoiruln mchoiruln

🎯
Focusing
View GitHub Profile
@loilo
loilo / pass-slots.md
Last active October 16, 2024 18:16
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {