docs(ComponentProps): display schema description

This commit is contained in:
Benjamin Canac
2024-07-24 14:48:33 +02:00
parent c00e0fa3db
commit 102fb2316d

View File

@@ -25,6 +25,9 @@ const schemaProps = computed(() => getSchemaProps(props.prop.schema))
<ProseUl>
<ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name">
<HighlightInlineType :type="`${schemaProp.name}${schemaProp.required === false ? '?' : ''}: ${schemaProp.type}`" />
<p v-if="schemaProp.description" class="text-gray-600 dark:text-gray-400">
{{ schemaProp.description }}
</p>
</ProseLi>
</ProseUl>
</Collapsible>