Skip to content

Commit 42423be

Browse files
committed
add docs on menu
1 parent 20a8e66 commit 42423be

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

navigation.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,43 @@ documentation.
140140
}
141141
```
142142

143+
### Menu
144+
145+
Menu is a special type of tab that is used to display a dropdown menu. It helps users navigate to different sections faster.
146+
147+
```json
148+
"navigation": {
149+
"tabs": [
150+
{
151+
"tab": "API References",
152+
"icon": "square-terminal",
153+
"menu": [
154+
{
155+
"item": "API References",
156+
"icon": "rocket",
157+
"pages": [
158+
"api-reference/get",
159+
"api-reference/post",
160+
"api-reference/delete"
161+
]
162+
},
163+
{
164+
"item": "SDKs",
165+
"icon": "code",
166+
"description": "SDKs are used to interact with the API.",
167+
"pages": [
168+
"sdk/fetch",
169+
"sdk/create",
170+
"sdk/delete",
171+
]
172+
}
173+
]
174+
}
175+
]
176+
}
177+
```
178+
179+
143180
---
144181

145182
## Anchors

0 commit comments

Comments
 (0)