Skip to content

Common Properties

These properties are valid on all visible items and can be used to specify constraints when used in layouts:

intdefault: 0

See GridLayout.

intdefault: 0

See GridLayout.

enum CrossAxisSelfAlignmentdefault: auto

Overrides the container’s cross-axis-alignment for this element. Valid on the children of a HorizontalLayout, VerticalLayout, or FlexboxLayout.

CrossAxisSelfAlignment

Overrides the container’s cross-axis-alignment for a single item. Used as the cross-axis-self-alignment property of the children of a FlexboxLayout, HorizontalLayout, or VerticalLayout.

  • auto: Use the container’s cross-axis-alignment value (default).
  • stretch: The item is stretched to fill the line along the cross axis.
  • start: The item is placed at the start of the cross axis.
  • end: The item is placed at the end of the cross axis.
  • center: The item is centered along the cross axis.

float(in-out)default: 0.0

Specify how much relative space these elements are stretching in a layout. When 0, this means that the elements won’t be stretched unless all elements are 0. Builtin widgets have a value of either 0 or 1.

lengthdefault: 0px

The maximum size of an element.

lengthdefault: 0px

The minimum size of an element.

lengthdefault: 0px

The preferred size of an element.


© 2026 SixtyFPS GmbH