Skip to main content

List

A windowed collection with stable item keys.

Props​

PropTypeRequired
accessibilityHintstringNo
enabledbooleanNo
itemslistYes
labelstringNo
semanticsstringNo

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​

<List bind-items="[{id:'a',title:'One'}]" class="h-40">
<Item name="item" key="item.id"><Text bind-text="item.title" /></Item>
<Empty><Text text="No rows" /></Empty>
</List>

Defaults, values, and validation​

Exactly one Item followed by at most one Empty. Each has one rendered root. Keys are unique strings/numbers. Give List a finite viewport.

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

Events​

No component events.

Local commands​

No local commands.

Native primitive index · Events · Host APIs