Skip to content

TabGroup with lots of tabs #2755

Answered by endigo9740
Josh-Nicholson asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Josh-Nicholson, so the the tab group should still allow horizontal scrolling even if the scrollbar is not visually shown. I wanted to make sure that's clear upfront. Additionally, if you have so many tabs that it requires scrolling, you might consider swapping to a different interface for small screens. This is a common UX pattern.

Unfortunately, hide-scrollbar is currently baked into the component's base classes here:
https://github.com/skeletonlabs/skeleton/blob/master/packages/skeleton/src/lib/components/Tab/TabGroup.svelte#L54

This means there's not a trivial means for disabling this. We took a very opinionated stance with this in Skeleton v2, which I regret in hindsight. But it'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Josh-Nicholson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants