docs: resolve example tag in DML properties (#14383)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user