How to realize this tabs?

as the picture is , when i click on one this tab the active effect can look like a blue stripe of bottom ,so any solution for me?
btw i‘ve found this example which is very similiar but i dont know how to change
thank u very much!