Skip to content

NavigationMenu has no way to apply a tooltip. #4050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nawazishali opened this issue May 2, 2025 · 0 comments
Open

NavigationMenu has no way to apply a tooltip. #4050

nawazishali opened this issue May 2, 2025 · 0 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@nawazishali
Copy link

nawazishali commented May 2, 2025

Description

I was looking to implement tooltip for NavigationMenu links as it was available in the DashboardSidebarLinks component in v2. But seems like the feature is no longer present in v3.

https://ui2.nuxt.com/pro/components/dashboard-sidebar-links

Let me know if there is still a simple way to implement tooltips specially in the collapsed Sidebar. I don't wanna go down with the slots approach. It looks dirty.

Additional context

This is what I have to do in order to get it to work. I believe this should be part of Nuxt UI already.

<UNavigationMenu :collapsed="collapsed" :items="links" orientation="vertical">
  <template #item-leading="{ item }">
    <UTooltip :disabled="!collapsed" :text="item.label">
      <UIcon
        :name="item.icon || ''"
        class="text-dimmed group-hover:text-default size-5 shrink-0 transition-colors"
      />
    </UTooltip>
  </template>
</UNavigationMenu>
@nawazishali nawazishali added enhancement New feature or request triage v3 #1289 labels May 2, 2025
@nawazishali nawazishali changed the title NavigationMenu has no way to implement a tooltip. NavigationMenu has no way to apply a tooltip. May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant