Rectangle
By default, a Rectangle
is just an empty item that shows nothing. By setting a color or configuring a border,
it’s then possible to draw a rectangle on the screen.
When not part of a layout, its width and height default to 100% of the parent element.
background
border-color
border-width
clip
bool default: false
By default, when child elements are outside the bounds of a parent,
they are still shown. When this property is set to true
, the children
of this Rectangle
are clipped and only the contents inside the elements bounds are shown.
Border Radius properties
border-radius
length default: 0
The size of the radius. This single value is applied to all four corners.
To target specific corners with different values use the following properties:
border-top-left-radius
length default: 0px
border-top-right-radius
length default: 0px
border-bottom-left-radius
length default: 0px