-
I have a small area to add tabs and I need more tabs in my tablist than there is horizontal space for. To allow the tabs to scroll i've added a div around the tablist that allowed it to scroll. <Tabs onSelectionChange={(key) => console.log(key)}>
<TabList aria-label="Project details" className="overflow-y-hidden overflow-x-scroll pb-4">
<Tab id="details">Details</Tab>
<Tab id="features">Features</Tab>
<Tab id="reference">Reference</Tab>
</TabList> Then I want to scroll the tab into view when it's clicked on but I'm not sure how to access the tab to use Does anyone have any advice for how to achieve this? |
Beta Was this translation helpful? Give feedback.
Answered by
universse
Jan 14, 2025
Replies: 1 comment 2 replies
-
🦗 Happy new year :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can add a ref to the list element then