diff --git a/packages/vuetify/src/components/VTabs/VTab.tsx b/packages/vuetify/src/components/VTabs/VTab.tsx index 15c5185ad96..855589bd6fe 100644 --- a/packages/vuetify/src/components/VTabs/VTab.tsx +++ b/packages/vuetify/src/components/VTabs/VTab.tsx @@ -14,6 +14,7 @@ import { animate, genericComponent, omit, propsFactory, standardEasing, useRende // Types import type { PropType } from 'vue' +import type { VBtnSlots } from '@/components/VBtn/VBtn' export const makeVTabProps = propsFactory({ fixed: Boolean, @@ -39,7 +40,7 @@ export const makeVTabProps = propsFactory({ ]), }, 'VTab') -export const VTab = genericComponent()({ +export const VTab = genericComponent()({ name: 'VTab', props: makeVTabProps(), @@ -122,18 +123,25 @@ export const VTab = genericComponent()({ maxWidth={ props.fixed ? 300 : undefined } onGroup:selected={ updateSlider } > - { slots.default?.() ?? props.text } - - { !props.hideSlider && ( -
- )} + {{ + ...slots, + default: () => ( + <> + { slots.default?.() ?? props.text } + + { !props.hideSlider && ( +
+ )} + + ), + }} ) })