<components>
The <components> section defines custom reusable components made from UDML primitives. These are composable blocks with named <slot> placeholders for dynamic content.
π§ Purpose
To support system design principles like reusability, consistency, and separation of concerns by enabling authors to define UI components once and use them anywhere.
π Syntax
<components>
<component name="UserCard">
<card>
<slot name="avatar"/>
<slot name="name"/>
<slot name="actions"/>
</card>
</component>
</components>π Child Tags
Tag
Required Attributes
Purpose
<component>
name
Defines the reusable block
<slot>
name
Declares a dynamic placeholder
β
Example Use in Screens
π§© AI Interpretation Guidelines
Expand
<component is="...">blocks with the defined structure.Replace
<slot name="...">with slotted content provided in use.Preserve custom structure and style of the original definition.
Last updated

