mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
23 lines
475 B
Vue
23 lines
475 B
Vue
<script setup lang="ts">
|
|
const items = [
|
|
[{
|
|
label: 'Profile',
|
|
avatar: {
|
|
src: 'https://avatars.githubusercontent.com/u/739984?v=4'
|
|
}
|
|
}]
|
|
]
|
|
|
|
const open = ref(true)
|
|
|
|
defineShortcuts({
|
|
o: () => open.value = !open.value
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<UDropdown v-model:open="open" :items="items" :popper="{ placement: 'bottom-start' }">
|
|
<UButton color="white" label="Options" trailing-icon="i-heroicons-chevron-down-20-solid" />
|
|
</UDropdown>
|
|
</template>
|