How to customize a vertical Line

I want to draw a vertical line between two components, and customize the color of the line, and its weight is 2px. How can I achieve it?

  Discussion posts and replies are publicly visible