mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 09:14:08 +00:00
Finalize Typescript restructure
This commit is contained in:
24
resources/scripts-v2/components/base/BaseTab.vue
Normal file
24
resources/scripts-v2/components/base/BaseTab.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<TabPanel :class="[tabPanelContainer, 'focus:outline-hidden']">
|
||||
<slot />
|
||||
</TabPanel>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { TabPanel } from '@headlessui/vue'
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
title?: string | number
|
||||
count?: string | number
|
||||
countVariant?: string | number
|
||||
tabPanelContainer?: string
|
||||
}>(),
|
||||
{
|
||||
title: 'Tab',
|
||||
count: '',
|
||||
countVariant: '',
|
||||
tabPanelContainer: 'py-4 mt-px',
|
||||
},
|
||||
)
|
||||
</script>
|
||||
Reference in New Issue
Block a user