Framework-Specific Types

Here are the supported type values that are specific to the framework.

type Example Description
Aura.Component N/A A single component. We recommend using Aura.Component[] instead.
Aura.Component[] <aura:attribute name="detail" type="Aura.Component[]"/>

To set a default value for type="Aura.Component[]", put the default markup in the body of aura:attribute. For example:

<aura:component>
    <aura:attribute name="detail" type="Aura.Component[]">
    <p>default paragraph1</p>
    </aura:attribute>
    Default value is: {!v.detail}
</aura:component>
Use this type to set blocks of markup. An attribute of type Aura.Component[] is called a facet.