title.component.yml

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/components/title/title.component.yml
Same filename in other branches
  1. 10 core/profiles/demo_umami/themes/umami/components/title/title.component.yml
core/modules/navigation/components/title/title.component.yml

File

core/modules/navigation/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. modifiers:
  13. type: array
  14. title: Modifier classes.
  15. description:
  16. Title modifiers.
  17. https://en.bem.info/methodology/css/#modifiers
  18. items:
  19. type: string
  20. enum:
  21. - ellipsis
  22. - xs
  23. extra_classes:
  24. type: array
  25. title: Extra classes.
  26. description:
  27. External modifiers added from the placement context.
  28. https://en.bem.info/methodology/css/#mixes
  29. items:
  30. type: string
  31. html_tag:
  32. type: string
  33. title: HTML tag for title
  34. # Limit the available options by using enums.
  35. enum:
  36. - h1
  37. - h2
  38. - h3
  39. - h4
  40. - h5
  41. - h6
  42. - span
  43. # Provide a default value
  44. default: h2
  45. icon:
  46. title: Icon
  47. type: string
  48. slots:
  49. content:
  50. title: Content
  51. description: Content of title.

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