Skip to main content

Theme

Scoped design tokens and motion policy.

Props​

PropTypeRequired
tokensrecordYes
motionstringNo

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​

<Theme bind-tokens="{}" motion="reduced"><Text text="Scoped content" /></Theme>

Defaults, values, and validation​

tokens is required; families are colors/radii/fonts/recipes. motion accepts system/reduced/off and cannot increase motion beyond host preference.

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