/* In Nativescript you can create a label with a small height and any background color */ .line { background: linear-gradient(to left, orangered, green, lightblue); height: 2px; } <label class="line"></label>