mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
43 lines
789 B
Vue
43 lines
789 B
Vue
<script setup lang="ts">
|
|
import type { DropdownMenuItem } from '@nuxt/ui'
|
|
|
|
const items: DropdownMenuItem[] = [
|
|
{
|
|
label: 'Team',
|
|
icon: 'i-lucide-users'
|
|
},
|
|
{
|
|
label: 'Invite users',
|
|
icon: 'i-lucide-user-plus',
|
|
children: [
|
|
{
|
|
label: 'Invite by email',
|
|
icon: 'i-lucide-send-horizontal'
|
|
},
|
|
{
|
|
label: 'Invite by link',
|
|
icon: 'i-lucide-link'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'New team',
|
|
icon: 'i-lucide-plus'
|
|
}
|
|
]
|
|
</script>
|
|
|
|
<template>
|
|
<UButtonGroup>
|
|
<UButton color="neutral" variant="subtle" label="Settings" />
|
|
|
|
<UDropdownMenu :items="items">
|
|
<UButton
|
|
color="neutral"
|
|
variant="outline"
|
|
icon="i-lucide-chevron-down"
|
|
/>
|
|
</UDropdownMenu>
|
|
</UButtonGroup>
|
|
</template>
|