Skip to content

PropBinding

A PropBinding creates a dynamic link between a prop and an element or style property. When the bound prop changes value, the linked property updates accordingly.

interface PropBinding {
$binding: string; // JSON Pointer to a prop, e.g. "#/props/label"
}

Where PropBindings Can Appear

PropBindings are accepted on these element properties:

PropertyEffect
childrenElement’s children are driven by a slot prop
instanceOfThe component instance swaps based on a prop value
visibleElement visibility is controlled by a prop
contentText or glyph content is bound to a prop

PropBindings can also appear as style values anywhere a Style is accepted.

Further Reading