Properties
An element has a set of named properties, determined by the type of the element. A property holds a value.
A property declaration adds a property to the element in whose body it appears.
It consists of the keyword property, the type in angle brackets, and a name,
optionally preceded by a visibility modifier,
optionally followed by : and an expression giving the initial value,
and ends with ;.
export component Example inherits Window { in property <color> tint; in-out property <length> gap: 10px;}The modifier declares the property’s visibility: which side may read and set the property’s value.
An in property is an input of the component: the application sets its value.
An out property is an output of the component:
the component determines its value, and the application reads it.
An in-out property is both: the application sets and reads its value.
A private property is internal to the component:
the application can neither set nor read it.
Private is the default: a declaration without a modifier declares a private property.
Properties can be declared on any element; see Properties.
The declared type shall be length or color.
Any property type can be declared.
Without an initial value, the property has the default value of its type.
© 2026 SixtyFPS GmbH