feat(DropdownMenu): add #item slot for consistency

This commit is contained in:
Benjamin Canac
2024-04-17 12:18:37 +02:00
parent ea19a3061f
commit 1dcc1f5074
6 changed files with 184 additions and 36 deletions

View File

@@ -102,7 +102,7 @@ const items = computed(() => [
<template>
<div class="flex-1">
<UDropdownMenu :items="items" arrow :content="{ side: 'bottom' }">
<UDropdownMenu :items="items" arrow :content="{ side: 'bottom' }" class="min-w-48">
<UButton label="Open" color="white" />
</UDropdownMenu>
</div>