The concept of the y-component is very similar. In the figure, the y-component is just the length of AB. That is, it is the length that you will have to travel along the positive y-axis if you wanted to reach the end of the vector from B.