From 2d2656226a1cf3ca9c56b2e272aae18e0ce9976f Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 8 Jan 2021 12:42:29 +0100 Subject: [PATCH] Update component-slots.md Make it clearer that you can pass as many attributes as you need per slot. --- src/guide/component-slots.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/guide/component-slots.md b/src/guide/component-slots.md index 85e8c35fea..ef9a77bb77 100644 --- a/src/guide/component-slots.md +++ b/src/guide/component-slots.md @@ -268,6 +268,16 @@ To make `item` available to the slot content provided by the parent, we can add ``` +You can bind as many attributes to the `slot` as you need: + +```html + +``` + Attributes bound to a `` element are called **slot props**. Now, in the parent scope, we can use `v-slot` with a value to define a name for the slot props we've been provided: ```html