A responsive menu component that shows a dropdown on desktop and a bottom drawer on mobile. Uses Tailwind breakpoints to detect viewport size.
Desktop: Click shows dropdown menu. Mobile: Click opens bottom drawer.
<AppResponsiveMenu :items="menuItems" title="Actions" > <UButton>Open Menu</UButton> </AppResponsiveMenu>
const menuItems = [
[
{ label: 'Edit', icon: 'i-lucide-pencil', click: () => edit() },
{ label: 'Duplicate', icon: 'i-lucide-copy' },
],
[
{ label: 'Delete', icon: 'i-lucide-trash' },
],
]