Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: controll your tabs externally #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tavoli
Copy link

@tavoli tavoli commented Aug 16, 2020

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?

@rgwch
Copy link

rgwch commented Feb 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants