Skip to content

Commit de33342

Browse files
committed
feat(AppHeader): add kbds in button trailing
1 parent bfac837 commit de33342

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app/components/AppHeader.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,21 @@ const { header } = useAppConfig()
1313
label="Search..."
1414
variant="outline"
1515
class="w-full"
16-
/>
16+
>
17+
<template #trailing>
18+
<div class="flex items-center gap-0.5 ms-auto">
19+
<UKbd value="meta" />
20+
<UKbd value="k" />
21+
</div>
22+
</template>
23+
</UContentSearchButton>
1724

1825
<template #title>
1926
<template v-if="header?.logo?.dark || header?.logo?.light">
20-
<UColorModeImage v-bind="{ class: 'h-6 w-auto', ...header?.logo }" />
27+
<UColorModeImage
28+
v-bind="header?.logo"
29+
class="h-6 w-auto"
30+
/>
2131
</template>
2232
<template v-else>
2333
Nuxt UI Pro <UBadge

0 commit comments

Comments
 (0)