Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Jan 28, 2025
1 parent 5d719f6 commit e57076b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 38 deletions.
1 change: 1 addition & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ useSeoMeta({
<UApp>
<UHeader>
<template #left>
<LogoPro class="w-auto h-6 shrink-0" />
<TemplateMenu />
</template>

Expand Down
73 changes: 35 additions & 38 deletions app/components/TemplateMenu.vue
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
<template>
<div class="flex items-center gap-2">
<LogoPro class="w-auto h-6 shrink-0" />
<UDropdownMenu
v-slot="{ open }"
:modal="false"
:items="[{
label: `Starter`,
to: 'https://starter-template.nuxt.dev/',
checked: true,
type: 'checkbox'
}, {
label: `Landing`,
to: 'https://landing-template.nuxt.dev/'
}, {
label: `Docs`,
to: 'https://docs-template.nuxt.dev/'
}, {
label: `SaaS`,
to: 'https://saas-template.nuxt.dev/'
}, {
label: `Dashboard`,
to: 'https://dashboard-template.nuxt.dev/'
}]"
:ui="{ content: 'w-(--reka-dropdown-menu-trigger-width) min-w-0' }"
<UDropdownMenu
v-slot="{ open }"
:modal="false"
:items="[{
label: `Starter`,
to: 'https://starter-template.nuxt.dev/',
checked: true,
type: 'checkbox'
}, {
label: `Landing`,
to: 'https://landing-template.nuxt.dev/'
}, {
label: `Docs`,
to: 'https://docs-template.nuxt.dev/'
}, {
label: `SaaS`,
to: 'https://saas-template.nuxt.dev/'
}, {
label: `Dashboard`,
to: 'https://dashboard-template.nuxt.dev/'
}]"
:ui="{ content: 'w-(--reka-dropdown-menu-trigger-width) min-w-0' }"
size="xs"
>
<UButton
label="Starter"
variant="subtle"
trailing-icon="i-lucide-chevron-down"
size="xs"
>
<UButton
label="Starter"
variant="subtle"
trailing-icon="i-lucide-chevron-down"
size="xs"
class="-mb-[6px] font-semibold rounded-full truncate"
:class="[open && 'bg-[var(--ui-primary)]/15 ']"
:ui="{
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' ')
}"
/>
</UDropdownMenu>
</div>
class="-mb-[6px] font-semibold rounded-full truncate"
:class="[open && 'bg-[var(--ui-primary)]/15 ']"
:ui="{
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' ')
}"
/>
</UDropdownMenu>
</template>

0 comments on commit e57076b

Please sign in to comment.