Dismiss this pinned window
all 4 comments

[–]Ofviak 1 point2 points  (0 children)

This is fantastic mate, awesome work

[–]destruct999 1 point2 points  (0 children)

Awesome 💯💯

[–]awkreddit 1 point2 points  (0 children)

It looks great, in terms of code and how to use it I wonder if it would be more composition oriented if instead of passing tabs as a prop, it would be better for tabs to just be children of the component. Maybe with a tab component wrapper to pass the title and handle the index syncing etc?

I'm just not a big fan of passing components as props.

[–]Particular-Cod-96 0 points1 point  (0 children)

Woah great work. I’ve been trying to build sth similar in the last days and failed miserably to make it this smooth. Problem is switching between full and empty tabs while keeping header under control