Skip to content

Commit 994ae86

Browse files
committed
chore: add docs about about new field
1 parent 56e6e3b commit 994ae86

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

navigation.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,34 @@ Style pages with breadcrumbs to display the full navigation path at the top of p
584584
}
585585
```
586586

587+
## Interaction Configuration
588+
589+
Control how users interact with navigation elements using the `interaction` property in your `docs.json`.
590+
591+
### Auto Navigation on Expand
592+
593+
Different themes have different default behavior when clicking on navigation groups. You can override this behavior using the `drilldown` option:
594+
595+
```json
596+
{
597+
"interaction": {
598+
"drilldown": true // Force navigation to first page when a user expands a dropdown
599+
}
600+
}
601+
```
602+
603+
```json
604+
{
605+
"interaction": {
606+
"drilldown": false // Never navigate, only expand/collapse
607+
}
608+
}
609+
```
610+
611+
- Set to `true` to force automatic navigation to the first page when clicking navigation groups
612+
- Set to `false` to prevent navigation and only expand or collapse the group
613+
- Leave unset to use the theme's default behavior
614+
587615
## FAQ
588616

589617
<Accordion title="What navigation folders should I avoid?">

0 commit comments

Comments
 (0)