We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe9f9f commit c31d95fCopy full SHA for c31d95f
docs/content/3.guide/1.writing/3.mdc.md
@@ -60,7 +60,7 @@ A component's slots can accept content or another components.
60
<template>
61
<section>
62
<h1 class="text-4xl"><slot /></h1>
63
- <slot name="description">
+ <slot name="description"/>
64
</section>
65
</template>
66
```
@@ -183,9 +183,15 @@ The `{}` identifier passes props to components in a terse way by using a `key=va
183
184
185
```html [Alert.vue]
186
+<script setup>
187
+defineProps(['type'])
188
+</script>
189
+
190
+<template>
191
<div :class="[type]">
192
<Markdown unwrap="p" />
193
</div>
194
+</template>
195
196
197
::code-block{label="Preview" preview}
0 commit comments