feat(Tabs): handle content prop as boolean

This commit is contained in:
Benjamin Canac
2024-06-03 14:55:33 +02:00
parent c6880c2036
commit e051ef682a
4 changed files with 51 additions and 36 deletions

View File

@@ -18,7 +18,9 @@ const items = [{
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex gap-4">
<UTabs :items="[{ label: 'Monthly' }, { label: 'Yearly' }]" :content="false" />
<UTabs :items="items" class="w-96">
<template #custom="{ item }">
<span class="text-gray-500 dark:text-gray-400">Custom: {{ item.content }}</span>