Tabs
Switch between related panels.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Tabs } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Tabs } from 'fractalsvelte';
</script>
<Tabs tabs={tabs} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
tabs | Tab[] | - | |
value | string | tabs[0]?.value ?? '' | The selected value. Supports bind:. |
