mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
feat(Tabs): handle content prop as boolean
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user