title.component.yml

Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/components/title/title.component.yml
core/profiles/demo_umami/themes/umami/components/title/title.component.yml

File

core/profiles/demo_umami/themes/umami/components/title/title.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: Title
  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. label:
  17. type: string
  18. html_tag:
  19. type: string
  20. title: HTML tag for title
  21. # Limit the available options by using enums.
  22. enum:
  23. - h1
  24. - h2
  25. - h3
  26. - h4
  27. - h5
  28. - h6
  29. - span
  30. # Provide a default value
  31. default: h2
  32. slots:
  33. title_prefix:
  34. type: object
  35. title: Title prefix
  36. title_suffix:
  37. type: object
  38. title: Title suffix

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