svelte-tabs icon indicating copy to clipboard operation
svelte-tabs copied to clipboard

feat: controll your tabs externally

Open tavoli opened this issue 4 years ago • 1 comments

Hi, I'm amazed how we managed to do amazing things with so little svelte code and I love your lib.

I lovely make this

<script>
  let tabComponent
</script>

<Tabs bind:this={tabComponent}>
 ...
</Tabs>

<button on:click={() => tabComponent.nextTab()}>next tab</button>

You would appreciate my PR?

tavoli avatar Aug 16 '20 20:08 tavoli

It would be great having this possibility to switch tabs programatically. Or is there another way?

rgwch avatar Feb 11 '23 16:02 rgwch