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

[Tabs]: export Tabs context/state manipulation so tab triggers can be iterated on #3123

Open
keturiosakys opened this issue Sep 17, 2024 · 0 comments

Comments

@keturiosakys
Copy link

Feature request

Overview

I'd love to be able to access the entire tab (trigger) list from the root of the tab component. I want to be able to iterate over it, not just select a value directly.

Examples in other libraries

React Aria library allows users to access and manipulate the state of the tab list either through the state or even lower useTabsList hook:

Who does this impact? Who is this for?

The main value I find is being able to bind a custom keybind for tabbing over the list without it needing be focused necessarily. For example, the feature I'm creating is allowing users to use [ and ] keys to tab over the components in a multipane setup (similar to lazygit: jesseduffield/lazygit#1861

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