mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
22 lines
422 B
Vue
22 lines
422 B
Vue
<template>
|
|
<UTabs :items="items" class="w-96">
|
|
<template #tab1="{ item }">
|
|
{{ item.label }}
|
|
</template>
|
|
</UTabs>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const items = [{
|
|
label: 'Tab1',
|
|
content: 'This is the content shown for Tab1',
|
|
slot: 'tab1'
|
|
}, {
|
|
label: 'Tab2',
|
|
content: 'And, this is the content for Tab2'
|
|
}, {
|
|
label: 'Tab3',
|
|
content: 'Finally, this is the content for Tab3'
|
|
}]
|
|
</script>
|