TabList
A list of <Tabs> where one can be selected
Code
<script lang="ts">
import { TabList, Tab } from '@geoffcox/sterling-svelte';
let selectedValue : string;
</script>
<TabList bind:selectedValue>
<Tab value="First">First</Tab>
<Tab value="Second">Second</Tab>
<Tab value="Third">Third</Tab>
<Tab value="Fourth">Fourth</Tab>
</TabList>
Members
| Property Name | Type | Default | Comment | | disabled | boolean | false |
| selectedValue | string | undefined | undefined |
| vertical | boolean | false |
| variant | string | '' |
| Event Name | Data | Comment | | select | value |
| Method Name | Parameters | Return Type | Comment | | selectFirstTab | | |
| selectPreviousTab | | |
| selectNextTab | | |
| selectLastTab | | |
Considerations
- Includes HTMLDivElement props, event, and methods
Anatomy
<div class="sterling-tab-list">
<!-- children -->
<slot {disabled} {selectedValue} {variant} {vertical} />
</div>