Skip to content

Commit 7a8c3ec

Browse files
committed
📝 Updates code examples with new v-slot syntax
1 parent c8a9a5d commit 7a8c3ec

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ Then use it as follows:
4141
dialog-root="#dialog-root"
4242
@dialog-ref="assignDialogRef"
4343
>
44-
<span slot="title">Your dialog title</span>
44+
<template v-slot:title>
45+
<span>Your dialog title</span>
46+
</template>
4547
<div>
4648
<p>Your content</p>
4749
</div>
@@ -238,7 +240,9 @@ export default {
238240
- **Usage**:
239241
```html
240242
<a11y-dialog>
241-
<span slot="title">Your dialog title</span>
243+
<template v-slot:title>
244+
<span>Your dialog title</span>
245+
</template>
242246
<!-- ... -->
243247
</a11y-dialog>
244248
```
@@ -250,7 +254,9 @@ export default {
250254
- **Usage**:
251255
```html
252256
<a11y-dialog>
253-
<span slot="closeButtonContent">Close dialog</span>
257+
<template v-slot:closeButtonContent>
258+
<span>Close dialog</span>
259+
</template>
254260
<!-- ... -->
255261
</a11y-dialog>
256262
```

0 commit comments

Comments
 (0)