How layouts work
A layout component does two things:- Defines properties — the editable fields that appear in the content builder (title, author, publish date, etc.)
- Renders the structure — how those properties are displayed, along with slots where view components can be added
Create a layout component
Create a new component and structure it as a layout. The key difference from a view component is that layouts typically:- Accept properties that become content fields
- Include a slot for child components (the blocks content teams add)
- Render a full-page structure rather than a single UI element
Properties become content fields
Every property you define in the layout appears as a field in the content builder. Content teams fill in these values when creating content.| Property type | Content builder field |
|---|---|
string | Text input |
text | Multi-line text area |
image | Image picker |
date | Date picker |
boolean | Toggle switch |
number | Number input |
enum | Dropdown selector |
The children parameter
Thechildren parameter contains the component blocks that content teams add. Your layout decides where these appear:
Multiple content sections
Some layouts need multiple distinct areas for components. For example, a quiz might have separate sections for questions and answers. Component groups are configured in the Types tab when setting up your content type — not in the layout code. When creating or editing a content type, you can organize allowed components into named groups. Each group appears as a separate section in the content builder where content teams can add blocks.Connect layout to content type
Once you’ve created a layout component, connect it to a content type:- Navigate to Types in your project
- Create a new content type or edit an existing one
- Select your layout component from the Layout dropdown
- Add view components to the Allowed Components list
Layout design tips
Keep layouts focused. Each layout should serve a specific content purpose — articles, product pages, FAQs. Don’t try to make one layout work for everything. Name properties clearly. Content teams see these names in the builder. “Hero Image” is clearer than “img1”. Consider mobile first. Your layout renders on phones, tablets, and desktop. Use flexible sizing and test across screen sizes. Use sensible defaults. Set default values for optional properties so content looks reasonable even when fields are left empty.What’s next
Content Types
Learn how to create content types that use your layout.
Components
Build the view components that content teams add to layouts.