TabList
A list of tabs where a single tab 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>
<!-- ... --->
</TabList>
Members
| Property Name | Type | Default | Comment |
---|
| disabled | boolean | null | undefined | false |
| selectedValue | string | undefined | undefined |
| vertical | boolean | null | undefined | false |
| onSelect | (value: string) => void | undefined |
| Method Name | Parameters | Return Type | Comment |
---|
| selectFirstTab | | |
| selectPreviousTab | | |
| selectNextTab | | |
| selectLastTab | | |
Considerations
- Includes HTMLDivElement props, events, and methods.
Anatomy
tab list (<div>)
children (Snippet)