diff --git a/docs/components/content/examples/VerticalNavigationExampleSections.vue b/docs/components/content/examples/VerticalNavigationExampleSections.vue new file mode 100644 index 00000000..abdc8601 --- /dev/null +++ b/docs/components/content/examples/VerticalNavigationExampleSections.vue @@ -0,0 +1,41 @@ + + + diff --git a/docs/content/5.navigation/1.vertical-navigation.md b/docs/content/5.navigation/1.vertical-navigation.md index c487e387..b158bac1 100644 --- a/docs/content/5.navigation/1.vertical-navigation.md +++ b/docs/content/5.navigation/1.vertical-navigation.md @@ -27,6 +27,12 @@ You can also pass any property from the [NuxtLink](https://nuxt.com/docs/api/com Learn how to build a Tailwind like vertical navigation in the [Examples](/getting-started/examples#verticalnavigation) page. :: +## Sections + +Group your navigation links into distinct sections, separated by a divider. You can do this by passing an array of arrays to the `links` prop of the VerticalNavigation component. + +:component-example{component="vertical-navigation-example-sections"} + ## Slots You can use slots to customize links display. diff --git a/src/runtime/components/navigation/VerticalNavigation.vue b/src/runtime/components/navigation/VerticalNavigation.vue index 5d55e8dd..7eb16df7 100644 --- a/src/runtime/components/navigation/VerticalNavigation.vue +++ b/src/runtime/components/navigation/VerticalNavigation.vue @@ -1,7 +1,7 @@