Skip to content

Commit 0bfc275

Browse files
committed
docs: <ContentDoc> slot example
1 parent 5169f3d commit 0bfc275

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/content/4.api/1.components/1.content-doc.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ The `default`{lang=ts} slot can be used to render the content via `v-slot="{ dat
3434
<template>
3535
<main>
3636
<ContentDoc v-slot="{ doc }">
37-
<h1>{{ doc.title }}</h1>
38-
<ContentRenderer :value="doc" />
37+
<article>
38+
<h1>{{ doc.title }}</h1>
39+
<ContentRenderer :value="doc" />
40+
</article>
3941
</ContentDoc>
4042
</main>
4143
</template>

0 commit comments

Comments
 (0)