docs: add missing props to UI components (#13247)

This commit is contained in:
Shahed Nasser
2025-08-20 12:36:57 +03:00
committed by GitHub
parent d1a1135328
commit 69d22213f4
10 changed files with 309 additions and 443 deletions
@@ -62,6 +62,8 @@ const Row = ({
}
} else if (type.name === "Array" && "elements" in type) {
raw = type.elements.map((element) => getTypeRaw(element)).join(" | ")
} else if (raw.startsWith("React.")) {
return ""
}
return normalizeRaw(raw)
@@ -71,6 +73,8 @@ const Row = ({
return type.type
} else if (type?.name === "Array" && type.raw) {
return normalizeRaw(type.raw) || "array"
} else if ("raw" in type && type.raw?.startsWith("React.")) {
return type.name.replace(/^React/, "")
}
return type.name || ""