Skip to content

Commit f911c5e

Browse files
tnyleataylorotwell
andauthored
Adding tooltips to collapsible sidebar (#85)
* Adding tooltips to collapsible sidebar * Update NavMain.vue --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 8bb3ffd commit f911c5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/js/components/NavMain.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const page = usePage<SharedData>();
1515
<SidebarGroupLabel>Platform</SidebarGroupLabel>
1616
<SidebarMenu>
1717
<SidebarMenuItem v-for="item in items" :key="item.title">
18-
<SidebarMenuButton as-child :is-active="item.href === page.url">
18+
<SidebarMenuButton
19+
as-child :is-active="item.href === page.url"
20+
:tooltip="item.title"
21+
>
1922
<Link :href="item.href">
2023
<component :is="item.icon" />
2124
<span>{{ item.title }}</span>

0 commit comments

Comments
 (0)