docs: highlight inline type code in props table

This commit is contained in:
Anthony Fu
2024-06-27 16:28:11 +02:00
parent b5f42cdd3a
commit 1d61d8d152
4 changed files with 28 additions and 12 deletions

View File

@@ -50,14 +50,10 @@ console.log('meta.value', meta.value)
</ProseCodeInline>
</ProseTd>
<ProseTd>
<ProseCodeInline v-if="prop.default">
{{ prop.default }}
</ProseCodeInline>
<HighlightInlineType v-if="prop.default" :type="prop.default" />
</ProseTd>
<ProseTd>
<ProseCodeInline v-if="prop.type" lang="ts">
{{ prop.type }}
</ProseCodeInline>
<HighlightInlineType v-if="prop.type" :type="prop.type" />
<ProseP class="mt-1 mb-0 text-gray-500 dark:text-gray-400">
{{ prop.description }}