Object
Object
This property provides control over the layout-related properties of design elements, including controlling the size, position, and layout behavior of elements to ensure their correct display and layout on the page.
Property | Type | Required |
---|---|---|
class | string | Required |
id | string | Required |
layout | oneOf< | Optional |
itemInLayout | oneOf< | Optional |
width | Width | Required |
maxWidth | MaxWidth | Optional |
minWidth | MinWidth | Optional |
height | Height | Required |
maxHeight | MaxHeight | Optional |
minHeight | MinHeight | Optional |
aspectRatio | number | Optional |
aspectRatio
OptionalDescription
This property refers to the proportional relationship between the width and height of an element. This property can be used to define the aspect ratio of an element, allowing you to set the desired width-to-height ratio. It ensures that the element maintains the same aspect ratio in containers of different sizes.
Type
number
Value
minimum (exclusive): the value of this number must be greater than: 0
aspectRatio
OptionalDescription
This property refers to the proportional relationship between the width and height of an element. This property can be used to define the aspect ratio of an element, allowing you to set the desired width-to-height ratio. It ensures that the element maintains the same aspect ratio in containers of different sizes.
Type
number
Value
minimum (exclusive): the value of this number must be greater than: 0