Skip to content

Commit

Permalink
docs: <ContentDoc> slot example
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Aug 25, 2023
1 parent 5169f3d commit 0bfc275
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/content/4.api/1.components/1.content-doc.md
Expand Up @@ -34,8 +34,10 @@ The `default`{lang=ts} slot can be used to render the content via `v-slot="{ dat
<template>
<main>
<ContentDoc v-slot="{ doc }">
<h1>{{ doc.title }}</h1>
<ContentRenderer :value="doc" />
<article>
<h1>{{ doc.title }}</h1>
<ContentRenderer :value="doc" />
</article>
</ContentDoc>
</main>
</template>
Expand Down

0 comments on commit 0bfc275

Please sign in to comment.