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:
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: https://github.com/jesseduffield/lazygit/discussions/1861
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: https://github.com/jesseduffield/lazygit/discussions/1861