Skip to content

Commit 158f9e7

Browse files
authored
docs: Update JSONSchemaViewer.mdx
1 parent be6871a commit 158f9e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

testsite/docs/api/JSONSchemaViewer.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ type JSVOptions = {
6060
* @default undefined
6161
*/
6262
UnresolvedRefsComponent?: (params: { schema: JSONSchema }) => JSX.Element
63+
/**
64+
* Defines how deep the schema should be expanded by default
65+
* Examples:
66+
* - 0: only the root level is expanded
67+
* - 1: root level and its direct children are expanded
68+
* - Infinity: expand all levels
69+
* @default 0
70+
* @min 0
71+
*/
72+
defaultExpandDepth?: number
6373
}
6474
```
6575

0 commit comments

Comments
 (0)