card.component.yml

Same filename in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/components/card/card.component.yml
core/profiles/demo_umami/themes/umami/components/card/card.component.yml

File

core/profiles/demo_umami/themes/umami/components/card/card.component.yml

View source
  1. # This is so your IDE knows about the syntax for fixes and autocomplete.
  2. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  3. # The human readable name.
  4. name: Card
  5. # Status can be: "experimental", "stable", "deprecated", "obsolete".
  6. status: experimental
  7. # Schema for the props. We support www.json-schema.org. Learn more about the
  8. # syntax there.
  9. props:
  10. type: object
  11. properties:
  12. attributes:
  13. type: Drupal\Core\Template\Attribute
  14. title: Attributes
  15. description: Wrapper attributes.
  16. html_tag:
  17. type: string
  18. title: HTML tag for wrapper
  19. # Limit the available options by using enums.
  20. enum:
  21. - article
  22. - div
  23. # Provide a default value
  24. default: article
  25. # Slots always hold arbitrary markup. We know that beforehand, so no need for
  26. # a schema for slots.
  27. slots:
  28. # The key is the name of the slot. In your template you will use
  29. # {% block content %}.
  30. content:
  31. title: Content
  32. required: true
  33. description: The card content.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.