Skip to main content

Scrollbar

A controlled scroll position and thumb.

Props​

PropTypeRequired
accessibilityHintstringNo
axisstringNo
enabledbooleanNo
labelstringNo
semanticsstringNo
thumbFractionnumberYes
valuenumberYes

Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.

Example​

<Column state="{position:0}"><Scrollbar label="Scroll position" model="position" thumbFraction="0.25" /></Column>

Defaults, values, and validation​

value is 0–1; thumbFraction is >0 and ≤1. axis accepts vertical/horizontal. Wire the change intent to the actual scroll owner.

Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.

Events​

on-change

change carries {value: ...} with the controlled value. See this primitive’s value rules; model assigns this field before the explicit handler.

Local commands​

No local commands.

Native primitive index · Events · Host APIs