Skip to main content

Grid

A finite-column grid container.

Props​

PropTypeRequired
accessibilityHintstringNo
columnsintegerNo
enabledbooleanNo
gapnumberNo
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​

<Grid columns="2" gap="8"><Text text="One" /><Text text="Two" /></Grid>

Defaults, values, and validation​

columns defaults 1, accepts 1–32. gap defaults 0, accepts 0–4096 logical units; the gap prop is not a four-unit utility suffix.

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