Skip to main content

SelectionGroup

Coordinate selection and keyboard focus among child items.

Props​

PropTypeRequired
accessibilityHintstringNo
activationstringNo
columnsintegerNo
enabledbooleanNo
labelstringNo
modestringNo
orientationstringNo
semanticsstringNo
valueanyYes

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="{choice:'a'}"><SelectionGroup model="choice" mode="single" label="Choice"><Pressable label="A" itemValue="a"><Text text="A" /></Pressable></SelectionGroup></Column>

Defaults, values, and validation​

mode accepts single/multiple/focus; orientation horizontal/vertical/grid; activation automatic/manual. Grid columns: 1–32. Child itemValue identifies selection.

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

Events​

on-activate, 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