Change record status: 
Project: 
Introduced in branch: 
11.2.x
Introduced in version: 
11.2.0
Description: 

Single-Directory Components allow to specify enum properties, which restricts the possible values in the element to our list.

But all page builders, like Experience Builder, that want to use Single-Directory Components require a way to document (and even translate) these values to more human-friendly labels.

The meta:enum attribute will make that feasible, as in the following *.component.yml fragment example:

    html_tag:
      type: string
      title: HTML tag
      enum:
        - a
        - button
        - span
      meta:enum:
        a: Link
        button: Button
        span: Inline
      x-translation-context: HTML tag
      default: button

If your meta:enum doesn't define some valid value from the enum list of values the raw enum values will be used instead.

Impacts: 
Site builders, administrators, editors
Module developers
Themers