- Issue created by @Foxy-vikvik
The documentation and example code for Single Directory Components (SDC) are inconsistent.
In the documentation here:
https://www.drupal.org/docs/develop/theming-drupal/using-single-director... β
the **header** is described as a **slot**, but in the `my-card` example it is defined as a **prop**.
1. Open the `my-card` component example.
https://git.drupalcode.org/project/sdc_examples/-/blob/1.x/components/my...
2. Compare the `component.yml` and Twig template with the documentation.
3. Notice that the `header` property is defined as a prop, while the docs describe it as a slot.
Update the component annotation in the example so that `header` is declared as a slot, consistent with the documentation.
Active
1.0
Miscellaneous