Theme configuration
group()
#
A navigation group, can be used to categorize or group links.
Example#
export default defineTheme({
directories: [
directory("dir-a", {
sidebar: [
group("Guides", [
link("Guide A", "/guides/a"),
link("Guide B", "/guides/b"),
]),
]
})
],
})
Reference#
function group(title, items);
titlestringrequired
The title of the group.
itemsArray<T>required
The navigation items inside of this group, the acceptable item types depends on which navigation area the group is in.
Reference - Options#
function group(options);
optionsGroupOptions
The options for this group.