
<template>
<CTabs :tabs="tabs">
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script><template>
<CTabs :tabs="tabs" variant="segmented">
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script><template>
<CTabs left :tabs="tabs">
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script><template>
<CTabs full :tabs="tabs">
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script><template>
<CTabs title="Tab with title" :tabs="tabs">
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script><template>
<CTabs title="Segmented with Search Input" :tabs="tabs" variant="segmented">
<div class="grid grid-cols-1 w-2/3">
<UInput
icon="i-heroicons-magnifying-glass-20-solid"
size="sm"
color="white"
:trailing="false"
placeholder="Search..."
/>
</div>
<template #tab1>
Content 1
</template>
<template #tab2>
Content 2
</template>
<!-- ... -->
</CTabs>
</template>
<script setup lang="ts">
const tabs = [
{
label: 'Tab 1',
icon: 'i-lucide-clipboard-pen',
slot: 'tab1',
},
{
label: 'Tab 2',
icon: 'i-lucide-download',
slot: 'tab2',
},
//...
]
</script>© 2025 Application Name. All Rights Reserved.