Edge Delivery Services how-tos · updated

How block options work in Edge Delivery Services

A block option is a word in brackets after the block name in the table header, such as 'Columns (wide)'. Edge Delivery Services adds it as an extra CSS class on the block. Multi-word options are joined with hyphens and comma-separated options become separate classes, so one block can have several looks without becoming several blocks.

How the header maps to classes

Author writes in the headerResulting markup
Columns<div class="columns">
Columns (wide)<div class="columns wide">
Columns (super wide)<div class="columns super-wide">
Columns (dark, wide)<div class="columns dark wide">

These mappings are taken from aem.live's 'Markup, Sections, Blocks, and Auto Blocking' page. Your CSS then targets .columns.wide or .columns.dark, and your decorate() function can read block.classList to change behaviour.

Option or new block?

Use an option when the content model (rows and cells) is the same and only the presentation changes: a dark background, a wider layout, a different number of items per row. Create a new block when authors would need different rows or cells, because one block with many options that change its structure becomes hard to author and to test.

Keep a short list of allowed options per block in your authoring guide. Undocumented options tend to multiply, and each one is a combination you need to test for layout and Lighthouse scores.

Reading an option in decorate()

export default function decorate(block) {
  if (block.classList.contains('carousel')) {
    // set up slide controls only for the carousel variant
  }
}

How to do it

  1. Decide which visual differences share the same content structure.
  2. Write CSS for .<block>.<option> selectors.
  3. If behaviour changes, branch on block.classList inside decorate().
  4. Document the allowed options for authors, with a screenshot each.

Related pages on this site

Questions

Can an author combine several options?

Yes. Comma-separated options become separate classes, for example 'Columns (dark, wide)' gives class="columns dark wide".

What happens with a two-word option?

The words are joined with a hyphen: 'Columns (super wide)' becomes class 'super-wide'.

Do options need extra JavaScript?

No, CSS alone is often enough; use JS only if the option changes behaviour.

Sources

Facts about Adobe's platform are from the linked Adobe pages, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to Edge Delivery Services

Surge Migrate moves a website from any CMS to any CMS, and Edge Delivery Services is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Import kit and one document per page, in the format of Adobe's AEM Importer. The free EDS block mapper shows which of your components map to EDS blocks. For AEM 6.5 code, the free readiness scan lists Cloud Service blockers in your browser. Nothing is uploaded.