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

onclick of button how to handle open selected tab #431

Open
komalharmale opened this issue Nov 24, 2021 · 0 comments
Open

onclick of button how to handle open selected tab #431

komalharmale opened this issue Nov 24, 2021 · 0 comments

Comments

@komalharmale
Copy link

komalharmale commented Nov 24, 2021

I have use react-tabs library.
when i click on tab its navigating to particular page its working properly as expected.
now i want to implement same functionality for button click
is this possible to open tab onClick of Button

Syntax:
<Tabs>
<TabList>
<Tab>
//dynamically adding tab here
</Tab>
</TabList>
</Tabs>

i have use one button -initially tab showing index zero position Tab
Now when i am clicking on button that time i want to set its index value 3 .
i want to show active tab index 3 position

@komalharmale komalharmale changed the title onclick of button how to open selected tab onclick of button how to handle open selected tab Nov 24, 2021
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

No branches or pull requests

1 participant