component Tabs { props { size: string = "default" color: string = "primary" label: string = "Tabs" items: unknown[] = [] active: string = "" orientation: string = "horizontal" class: string = "" } state activeValue = active || (items[0] ? (items[0].value || items[0].id || "0") : "") view {
{#each items as item, index} {/each}
{#each items as item, index}
{#if item.title && item.title !== item.label}

{item.title}

{/if} {#if item.description}

{item.description}

{/if} {#if item.content}
{item.content}
{/if}
{/each}
} }