-
Notifications
You must be signed in to change notification settings - Fork 961
Open
Labels
enhancementNew feature or requestNew feature or requestp3-lowMinor cosmetic, edge case, or documentation issueMinor cosmetic, edge case, or documentation issuev4#4488#4488
Description
Package
v4.x
Description
I'm using the UDropdownMenu component and need to display a toolbar only at the first level of a nested dropdown menu. Currently, it seems the content-top slot doesn't have access to information about which menu level it's currently rendering in.
My use case example:
<UDropdownMenu>
<UButton size="sm" color="info" variant="ghost" />
<template #content-top="{ level }">
<div v-if="level === 1">
Toolbar (should only appear in first level)
</div>
</template>
</UDropdownMenu>
Additional context
No response
mo3in
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestp3-lowMinor cosmetic, edge case, or documentation issueMinor cosmetic, edge case, or documentation issuev4#4488#4488