Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

### Default expanded state

Set `expanded: true` on a group to make it expanded by default in the navigation sidebar. This is useful for highlighting important sections or improving discoverability of key content.

Check warning on line 97 in navigation.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

navigation.mdx#L97

Did you really mean 'discoverability'?

```json
{
Expand Down Expand Up @@ -610,24 +610,22 @@

### Enable auto-navigation for groups

When a user expands a navigation group, some themes will automatically navigate to the first page in the group. You can override a theme's default behavior using the `drilldown` option:
When a user expands a navigation group, some themes will automatically navigate to the first page in the group. You can override a theme's default behavior using the `drilldown` option.

```json
{
"interaction": {
"drilldown": true // Force navigation to first page when a user expands a dropdown
}
- Set to `true` to force automatic navigation to the first page when a navigation group is selected.
- Set to `false` to prevent navigation and only expand or collapse the group when it is selected.
- Leave unset to use the theme's default behavior.

<CodeGroup>
```json Force navigation
"interaction": {
"drilldown": true // Force navigation to first page when a user expands a dropdown

Check warning on line 622 in navigation.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

navigation.mdx#L622

Did you really mean 'drilldown'?
}
```

```json
{
"interaction": {
"drilldown": false // Never navigate, only expand/collapse
}
```json Prevent navigation
"interaction": {
"drilldown": false // Never navigate, only expand or collapse the group
}
```

- Set to `true` to force automatic navigation to the first page when a navigation group is selected.
- Set to `false` to prevent navigation and only expand or collapse the group when it is selected.
- Leave unset to use the theme's default behavior.
</CodeGroup>