docs: resolve example tag in DML properties (#14383)

This commit is contained in:
Shahed Nasser
2025-12-22 17:52:24 +02:00
committed by GitHub
parent 04a6343951
commit 662ec7430b
8 changed files with 40 additions and 2 deletions
@@ -133,7 +133,7 @@ const TypeListItem = ({
return (
<DetailsSummary
subtitle={
item.description || item.defaultValue ? (
item.description || item.defaultValue || item.example ? (
<>
{item.description && (
<MarkdownContent
@@ -176,6 +176,11 @@ const TypeListItem = ({
Default: <InlineCode>{item.defaultValue}</InlineCode>
</p>
)}
{item.example && (
<div className="mt-0.5">
Example: <InlineCode>{item.example}</InlineCode>
</div>
)}
</>
) : undefined
}
@@ -13,6 +13,7 @@ export type Type = {
type: string
optional?: boolean
defaultValue?: string
example?: string
description?: string
featureFlag?: string
expandable: boolean