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.
Designing App UI
An app’s markup starts with the <aura:application> tag.
Let's look at a sample.app file, which starts with the <aura:application> tag.
1<aura:application extends="force:slds">
2 <lightning:layout>
3 <lightning:layoutItem padding="around-large">
4 <h1 class="slds-text-heading_large">Sample App</h1>
5 </lightning:layoutItem>
6 </lightning:layout>
7 <lightning:layout>
8 <lightning:layoutItem padding="around-small">
9 Sidebar
10 <!-- Other component markup here -->
11 </lightning:layoutItem>
12 <lightning:layoutItem padding="around-small">
13 Content
14 <!-- Other component markup here -->
15 </lightning:layoutItem>
16 </lightning:layout>
17
18</aura:application>The sample.app file contains HTML tags, such as <h1>, as well as components, such as <lightning:layout>. We won't go into the details for all the components here but note how simple the markup is. The <lightning:layoutItem> component can contain other components or HTML markup.