Layout

forceCommunity:layout

Enables a component to be used as a custom layout for creating pages in the Experience Builder.

For Use In

Experience Builder Sites

To appear in Experience Builder as a custom layout, a component must implement the forceCommunity:layout interface.

Here's the sample code for a simple two-column content layout.

Mark your resources, such as a component, with access="global" to make the resource usable outside of your own org. For example, if you want a component to be usable in an installed package or by a Lightning App Builder user or a Experience Builder user in another org.

Next, add a CSS resource to your component bundle to style the content layout. CSS resources must be named componentName.css.

Optionally, to define a custom icon for the content layout component, you can add an SVG resource to your component bundle.

For more information, see Using Components in the Lightning Aura Components Developer Guide.

No specifications to show