Type Tabs using $$Props

This commit is contained in:
Ryan Gossiaux
2022-02-07 15:25:19 -08:00
parent a582f79170
commit 6bc781b86e
6 changed files with 91 additions and 17 deletions

View File

@@ -56,7 +56,6 @@
>
{#each tabs as tab, tabIdx (tab.name)}
<Tab
key={tab.name}
disabled={tab.disabled}
class={({ selected }) =>
classNames(
@@ -85,7 +84,7 @@
<TabPanels class="mt-4">
{#each tabs as tab (tab.name)}
<TabPanel class="bg-white rounded-lg p-4 shadow" key={tab.name}>
<TabPanel class="bg-white rounded-lg p-4 shadow">
{tab.content}
</TabPanel>
{/each}