Skip to main content

Components

This page shows you what a component is and how to create one from your blocks.

A component is a synced pattern that takes values. You build a card once, and each page that places it sets its own title, its own image, and its own buttons. The layout stays in one place: change the pattern, and every page follows.

WordWhat it is
ComponentA reusable set of blocks: a synced pattern, placed on a page
PropertyA value of the component that each placed component can set
SlotAn empty place in the component that each placed component fills with its own blocks

Create a component from blocks​

  1. Select a block, or several blocks in a row.
  2. In the block's menu, click Create component.
  3. Give it a name, and categories if you want.
  4. Click Create.

Create component in the block settings menu of a card

The Create component dialog: Name and Categories

The blocks become a synced pattern, and a component takes their place. You stay on the page. A message says the component is created: click Edit in it to open the pattern and give it properties and slots. Edit original, on the component, opens it later.

You need the right to create patterns to see Create component. It does not show on a pattern or a component selected alone, which is one already.

Use a pattern you already have​

A synced pattern becomes a component as soon as it has a property or a slot. Open it in the editor, then add properties or add slots.

Common mistake

Edit original changes the component on every page that places it. To change one page only, set its properties or fill its slots.

Next steps​