Skip to content

Rectangle element

A rectangle, drawn with background and border.

- { type: rect }
rect.report.yaml
title: Rectangles
body:
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 }
The rect example, rendered by Tagua.

Type: length

Rounds the corners.

It also has the properties of every element and the style properties.