Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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:

1<aura:component>
2    <aura:attribute name="detail" type="Aura.Component[]">
3    <p>default paragraph1</p>
4    </aura:attribute>
5    Default value is: {!v.detail}
6</aura:component>
Use this type to set blocks of markup. An attribute of type Aura.Component[] is called a facet.
Aura.Action <aura:attribute name="onclick" type="Aura.Action"/> Use this type to pass an action to a component. See Using the Aura.Action Attribute Type.