mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 20:28:09 +01:00
docs(ComponentProps): add ? when prop is optional
This commit is contained in:
@@ -24,7 +24,7 @@ const schemaProps = computed(() => getSchemaProps(props.prop.schema))
|
|||||||
<Collapsible v-if="schemaProps?.length" class="mt-1">
|
<Collapsible v-if="schemaProps?.length" class="mt-1">
|
||||||
<ProseUl>
|
<ProseUl>
|
||||||
<ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name">
|
<ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name">
|
||||||
<HighlightInlineType :type="`${schemaProp.name}: ${schemaProp.type}`" />
|
<HighlightInlineType :type="`${schemaProp.name}${schemaProp.required === false ? '?' : ''}: ${schemaProp.type}`" />
|
||||||
</ProseLi>
|
</ProseLi>
|
||||||
</ProseUl>
|
</ProseUl>
|
||||||
</Collapsible>
|
</Collapsible>
|
||||||
|
|||||||
Reference in New Issue
Block a user