Skip to content

Commit c9c23e1

Browse files
authored
Have as=a for Responsive Nav Link (#1543)
This why like DropdownLink we can link to non inertia pages for example ``` <ResponsiveNavLink as="a" :href="route('filament.admin.pages.dashboard')" :active="route().current('filament.admin.pages.dashboard')"> Admin Area </ResponsiveNavLink> ```
1 parent 2b724e1 commit c9c23e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stubs/inertia/resources/js/Components/ResponsiveNavLink.vue

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const classes = computed(() => {
2121
<slot />
2222
</button>
2323

24+
<a v-else-if="as == 'a'" :class="classes" class="w-full text-start" :href="href">
25+
<slot />
26+
</a>
27+
2428
<Link v-else :href="href" :class="classes">
2529
<slot />
2630
</Link>

0 commit comments

Comments
 (0)