Tabs UI design in detail.
@diegohaz14K followers
62,986 views
27 Comments
Comments from the original post on X (Twitter)

@almosttomorrowe
I'd read the overflow follow-up. The case I'm curious about is zooming in until the active tab slips offscreen. Does it scroll back into view without moving keyboard focus?
1 like

@hsnbrg_0X
those color coded radius arcs got me nerding out
1 like

@nerdjfpb
crisp details
1 like

@sorrychandra
Amazed to see the amount of details you have put into this.. It's crazy 🫡
1 like

@melkornms
Super curious — how did you do the detailed view with the radii?
1 like

@divya_the_coder
would love the RTL bit in that post too. scrollLeft going negative in rtl is where my chevron logic usually breaks quietly

@itsjamik
chevrons only on the side with hidden tabs is such a nice detail. would def read the scrollable one tbh

@justenufbuilder
nice looks good.. have you benchmarked its performance and resource utilization?

@diegohaz
I'm working on a collection of instructions and code recipes that your agent can reuse and adapt, with all these rules built in. I plan to launch it by the end of the year. If you want to hear about it when it's out, subscribe to my newsletter:

@GustasMe56714
我建议拆分每个讲解为60秒以内的讲解知识,因为短视频更具传播,我一直在找这些短视频UI讲解学习。特别适合碎片化学习。

@prasad_patewar
is there any tool or app to check this radia and spacing gaps like you are showing ?

@diegohaz
I don't use any specific tool, but it's not too hard to visualize once you understand the math:
4 likes

@prasad_patewar
oh i get it, but how you then created this video. I was asking is it just in video or there is any design tool where these markers shift while you are working on it

@diegohaz
Just in the video. See:
1 like

@i1xhi
Nice detail on the chevrons. One thing for the scrollable version: when a tab gets focus via arrow keys, scroll it fully into view past the chevron, otherwise the focused tab sits half hidden. Are you covering keyboard behavior too?

@bologabriele
chevrons only on the side with hidden tabs is such a small detail and most apps still get it wrong

@mancerrss
This is some stellar stuff

@himanshugoooooo
Please do the scrollable one. Especially how arrow-key focus pulls a hidden tab into view without the scroll jumping.

@ShivamGuptaim
Please cover what happens when the selected tab is off-screen after a resize. The chevrons say “more exists,” but not necessarily “the thing you’re looking at is over there.” Tiny detail, surprisingly large orientation problem.

@navedm1424
Have you tried collapsing the angles around the edge instead of the radii? I'm curious to see how that would look.

