Rectangle element
A rectangle, drawn with background and border.
- { type: rect }Example
Section titled “Example”title: Rectanglesbody: reportHeader: - layout: row gap: 16pt content: - { type: rect, width: 90pt, height: 56pt, background: "#F1E6CF" } - { type: rect, width: 90pt, height: 56pt, border: "1pt solid #6B4428", cornerRadius: 8pt } - { type: rect, width: 90pt, height: 56pt, background: "#6B4428", cornerRadius: 28pt }
Properties
Section titled “Properties”cornerRadius
Section titled “cornerRadius”Type: length
Rounds the corners.
It also has the properties of every element and the style properties.