-
-
Notifications
You must be signed in to change notification settings - Fork 940
Configurable navbar #777
Copy link
Copy link
Closed
Description
What version of starlight are you using?
0.10.2
What is your idea?
As the title says, we need a configurable navigation bar menu.
The navbar option can be added to the starlight configuration item. navbar contains the data needed to generate the menu。
For example:
export default defineConfig({
integrations: [starlight({
...
navbar: {
showSearch: false,
showLocale: false,
items: [
{
label: "Home",
to: "/",
position: "left",
activeBaseRegex: '/',
type: "link",
},
{
label: "Reference",
to: "/reference",
position: "left",
activeBaseRegex: '/reference',
type: "dropdown",
items: [MenuItem]
}
]
}
})]
});Why is this feature necessary?
Can organize website navigation more freely
Do you have examples of this feature in other projects?
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels