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]

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


© 2026 SixtyFPS GmbH