Skip to main content

Component

{% embed %}Places a synced pattern, with its own values and blocks on each page.

What it does​

The Component block places a synced pattern on a page. You build a card once. Each page that places it sets its own title and image, and adds its own buttons. Change the pattern, and every page follows.

How to use it​

  1. Add a Component block
  2. Choose a pattern in its box
  3. Set its properties in the sidebar

A component selected on a page: its slot outlined on the canvas, its properties and its slot in the sidebar

Start from your own blocks

You don't need a pattern first. Select your blocks and click Create component in the block's menu. See Create a component.

The Slot block​

A Slot is an empty place in the pattern that each page fills with its own blocks. The inserter lists it only while you edit a synced pattern. See Add slots.

In the HTML panel​

A component is an {% embed %}, named by the pattern's slug:

{% embed 'card' with { title: 'Our services' } %}{% endembed %}

See the Components overview for properties, slots and limits.

Next steps​