File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ onKeyStroke(
150150 </div >
151151
152152 <!-- End: Desktop nav items + Mobile menu button -->
153- <ButtonGroup class =" hidden sm:flex flex-shrink-0" >
153+ <ButtonGroup as = " div " class =" hidden sm:flex flex-shrink-0" >
154154 <!-- Desktop: Compare link -->
155155 <LinkBase variant =" button-secondary" to =" /compare" keyshortcut =" c" >
156156 {{ $t('nav.compare') }}
Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ const props = defineProps <{
3+ as? : string | Component
4+ }>()
5+ </script >
6+
17<template >
2- <nav
8+ <component
9+ :is =" props.as || 'nav'"
310 class =" flex items-center shrink-0 ms-auto [& >*:not(:first-child)]:rounded-s-none [& >*:not(:first-child)]:border-s-0 [& >*:not(:last-child)]:rounded-e-none"
411 >
512 <slot />
6- </nav >
13+ </component >
714</template >
You can’t perform that action at this time.
0 commit comments