Skip to content

Commit

Permalink
feat(v-dropdown): new custom slots: label and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Sep 27, 2021
1 parent 4dc710c commit c6b528a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/VDropdown/VDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ const emit = defineEmits(['update:modelValue']);
<div>
<MenuButton as="template">
<v-btn v-bind="{...restBtnProps, ...btnProps}">
{{ label }}
<ChevronDownIcon class="w-5 h-5 ml-2 -mr-1" aria-hidden="true" />
<slot name="label">
{{ label }}
</slot>
<slot name="icon">
<ChevronDownIcon class="w-5 h-5 ml-2 -mr-1" aria-hidden="true" />
</slot>
</v-btn>
</MenuButton>
</div>
Expand Down

0 comments on commit c6b528a

Please sign in to comment.