mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
25 lines
480 B
Vue
25 lines
480 B
Vue
<script setup lang="ts">
|
|
const open = ref(false)
|
|
|
|
defineShortcuts({
|
|
o: () => open.value = !open.value
|
|
})
|
|
|
|
const items = [{
|
|
label: 'Profile',
|
|
icon: 'i-lucide-user'
|
|
}, {
|
|
label: 'Billing',
|
|
icon: 'i-lucide-credit-card'
|
|
}, {
|
|
label: 'Settings',
|
|
icon: 'i-lucide-cog'
|
|
}]
|
|
</script>
|
|
|
|
<template>
|
|
<UDropdownMenu v-model:open="open" :items="items" class="w-48">
|
|
<UButton label="Open" color="neutral" variant="outline" icon="i-lucide-menu" />
|
|
</UDropdownMenu>
|
|
</template>
|