Skip to content

Commit c31d95f

Browse files
authored
docs: fix missing slash (#1306)
1 parent 2fe9f9f commit c31d95f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/content/3.guide/1.writing/3.mdc.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ A component's slots can accept content or another components.
6060
<template>
6161
<section>
6262
<h1 class="text-4xl"><slot /></h1>
63-
<slot name="description">
63+
<slot name="description"/>
6464
</section>
6565
</template>
6666
```
@@ -183,9 +183,15 @@ The `{}` identifier passes props to components in a terse way by using a `key=va
183183
```
184184

185185
```html [Alert.vue]
186+
<script setup>
187+
defineProps(['type'])
188+
</script>
189+
190+
<template>
186191
<div :class="[type]">
187192
<Markdown unwrap="p" />
188193
</div>
194+
</template>
189195
```
190196

191197
::code-block{label="Preview" preview}

0 commit comments

Comments
 (0)