vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.48k stars 1.86k forks source link

Support multi-level navbar #3816

Open MikeCZ23 opened 3 weeks ago

MikeCZ23 commented 3 weeks ago

Is your feature request related to a problem? Please describe.

yes

Describe the solution you'd like

{
   "text":"level1",
   "collapsible":true,
   "collapsed":false,
   "items":[
      {
         "text":"level1-1",
         "collapsible":true,
         "collapsed":false,
         "items":[
            {
               "text":"level1-1-1 ",
               "link":"/01.1"
            },
            {
               "text":"level1-1-2 ",
               "link":"/01.2"
            }
         ]
      },
      {
         "text":"level1-2",
         "collapsible":true,
         "collapsed":false,
         "items":[
            {
               "text":"level1-2-1 ",
               "link":"/02.1"
            },
            {
               "text":"level1-2-2 ",
               "link":"/02.2"
            }
         ]
      }
   ]
}

Describe alternatives you've considered

No response

Additional context

No response

Validations

kiaking commented 3 weeks ago

You mean you wanna have nested nav bar menu? Do you have any example how it might look like?

MikeCZ23 commented 3 weeks ago

You mean you wanna have nested nav bar menu? Do you have any example how it might look like?

Snímek obrazovky 2024-04-22 133600 something like this

kiaking commented 3 weeks ago

Ah I see. Gotcha. Could be cool to have but maybe with a bit different design. Popping up different dialog on top of another dialog becomes tricky when we have many nested menu 👀

I think switching panel inside dialog would be more scalable. Maybe I'll whip up some design for this.