### Reactive example
Use the `selected` prop to bind the current tab index.
### Re-rendering tabs
In the example below, tabs are rendered using the `#each` block. However, the Tabs component can lose track of the current index if the number of rendered tabs changes.
Use the [`#key` block](https://svelte.dev/docs#key) to dynamically update tab items or content.
### Skeleton