Skip navigation
Tabs UI design in detail.
0:00 / 0:40

Tabs UI design in detail.

Haz

@diegohaz14K followers

Visit on X
1,828 likesDownloadOriginal post

62,986 views

Tabs UI design in detail. I'm thinking about a separate post on the scrollable version. When tabs overflow, the list scrolls without a visible scrollbar, and chevron buttons appear only on the sides with hidden tabs. There are a lot of details I didn't cover here.

27 Comments

Comments from the original post on X (Twitter)

  • Almost Tomorrow's profile picture

    @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

  • heisenbergg.'s profile picture

    @hsnbrg_0X

    those color coded radius arcs got me nerding out

    1 like

  • Muhammad's profile picture

    @nerdjfpb

    crisp details

    1 like

  • Chandra Shekhar Suthar's profile picture

    @sorrychandra

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

    1 like

  • Michal Ševčík's profile picture

    @melkornms

    Super curious — how did you do the detailed view with the radii?

    1 like

  • Divya G's profile picture

    @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

  • Jamik's profile picture

    @itsjamik

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

  • Arvind | Ideas to Digital Products.'s profile picture

    @justenufbuilder

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

  • Haz's profile picture

    @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:

  • Me Gustas's profile picture

    @GustasMe56714

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

  • Prasad's profile picture

    @prasad_patewar

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

  • Haz's profile picture

    @diegohaz

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

    4 likes

  • Prasad's profile picture

    @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

  • Haz's profile picture

    @diegohaz

    Just in the video. See:

    1 like

  • Steffen's profile picture

    @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?

  • Gabriele Bolognese | SaaS founder's profile picture

    @bologabriele

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

  • Steve's profile picture

    @mancerrss

    This is some stellar stuff

  • rudeTool's profile picture

    @himanshugoooooo

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

  • Shivam Gupta's profile picture

    @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.

  • Naved M. Usmani's profile picture

    @navedm1424

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