UI components for calculating area and perimeter of the triangle