vuejs / vitepress

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

fix(theme): bind missing no icon prop in the menu link component #4260

Closed dvuckovic closed 1 month ago

dvuckovic commented 1 month ago

Building upon #3607 it would be nice to have such control over the dropdown menu links as well.

Use Case

export default {
  themeConfig: {
    nav: [
      {
        text: 'Current release',
        items: [
          text: 'Next release',
          link: 'https://next.example.com',
          target: '_self',
          noIcon: true, // don't want the external link icon here, even though it's on a different domain
        ],
      },
    ],
  },
}