mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
v5.0.0 update
This commit is contained in:
29
resources/scripts/components/base/BaseTab.vue
Normal file
29
resources/scripts/components/base/BaseTab.vue
Normal file
@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<TabPanel :class="[tabPanelContainer, 'focus:outline-none']">
|
||||
<!-- focus:ring-1 focus:ring-jet focus:ring-opacity-60 -->
|
||||
<slot />
|
||||
</TabPanel>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { TabPanel } from '@headlessui/vue'
|
||||
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: [String, Number],
|
||||
default: 'Tab',
|
||||
},
|
||||
count: {
|
||||
type: [String, Number],
|
||||
default: '',
|
||||
},
|
||||
countVariant: {
|
||||
type: [String, Number],
|
||||
default: '',
|
||||
},
|
||||
tabPanelContainer: {
|
||||
type: String,
|
||||
default: 'py-4 mt-px',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user