Skip to content

Bindings

A binding assigns an expression to a property of the element in whose body it appears. It has the form of a property name, followed by :, an expression, and ;.[sls.binding.form]

export component Example inherits Window {
Rectangle {
background: #2a6e3f;
}
}
slint

The name shall refer to a property of the enclosing element.[sls.binding.target-must-exist]

Every property and every expression has a type: color, length, or brush.[sls.type.kinds]

An expression whose type is not the type of the property binds to it only when a conversion applies.[sls.type.conversions]

The type of the expression shall be the type of the property, or convert to it.[sls.binding.type]


© 2026 SixtyFPS GmbH