Define layout
Uniform enables you to define the layout for a digital experience (like a web page, email message or screen in a mobile app), using a no-code tool. This involves the following:
- Understanding the basic Uniform terminology related to layout management.
- Defining components that represent the layout.
- Creating a composition that lets you specify the components that make up a web page.
Overview
Once the Uniform application is configured, business users can add data and content to experiences using a no-code tool called Uniform Canvas. Uniform compositions leverage components, which represent anything that is displayed by the front-end. Users specify which components to use and the conditions under which those components are used. Variation options include A/B testing, classification, and personalization.
Uniform Canvas lets business users control layout without having to get into front-end design. You can think of Canvas as "layout as a service". The business user can control which components are used and what content is available to those components, but leaves the responsibility for how those components are built in the hands of the front-end developer.
Define components
What you create in Canvas is a representation of the application components that business users can interact with. As you will see later, the name of the component gets mapped to the implementation of the component that is built by a front-end developer.
Components need only be defined in the app for content or data that business users should be able to control. For example, there is nothing in the navigation or footer components in this tutorial for the business user to control, so components do not need be created for them.
Default Body
This tutorial includes a component type called "Default Body." This component type is represents most of the content that will make up a web page. It includes everything present within the 'main' tag in the Body.jsx file in the code base.
A business user will be able to personalize this component by specifying different content depending on whether the visitor has viewed the Architecture page.

In your Uniform project, navigate to Canvas > Component Library.
Click the red (+) button.
Enter the following values:
- Component Name:
Default Body
- Component Icon:
menu-boxed
- Component Name:
Click Parameters.
infoParameters allow business users to set values that are passed to the component. They give the user the ability to control the component, but within the limits specified by the parameter settings.
Click the red (+) button.
Enter the following values:
- Parameter Name:
Content ID
- Public ID:
contentId
- Type: Text
- Required:
ticked
infoWhen a business user adds this component to a composition, they will be required to set a value for this parameter.
- Parameter Name:
Click OK.
Click Save and close.
Default Page
Now we will create another component type which will represent an element that a business user can use to create experiences: a composition component. In this tutorial, this component represents a page on the site that a business user can add a Default Body component to.

In your Uniform project, navigate to Canvas > Compositions. Click the red (+) button.
Enter the following values:
- Component Name:
Default Page
- Component Icon:
file-document
- Composition Component:
ticked
infoThis component is marked a composition component because you want a business user to be able to create a composition based on it.
- Component Name:
Click Slots.
infoSlots represent areas in which components can be placed. Uniform determines which component to insert into a slot based on configurations set by the business user.
Click the red (+) button.
Enter the following values:
- Slot Name:
body
- Minimum:
1
- Maximum:
1
- Allowed Components: Default Body
infoThese settings ensure that:
- At least 1 component is entered into the slot
- No more than 1 component is entered into the slot
- The only component type that is entered is the Default Body
- Slot Name:
Click OK.
Click Save and close.
Create composition
Now you need to create a composition that represents the home page.
Click Compositions in the list on the left.
Click the red (+) button.
Enter the following values:
- Select a composition type: Default Page
- Name:
Home Page
Click Create.
For the Slug, enter
/
infoThe slug is the value the front-end logic will use to retrieve the details about the composition. Don't be confused by the value being /. The value could just as easily have been "home" or "home page". As long as the front-end logic uses the same value, the slug can be whatever you want.
Click the green (+) button in the body slot to add a component.
Click Default Body.
Enter the following values:
- Content ID:
home
- Content ID:
The Save button also acts as a drop-down. Click the ⌵ icon to activate the dropdown.
Click Save > Save and publish.
Click < Compositions in the upper left-hand corner.