title.component.yml

Same filename in this branch
  1. main core/profiles/demo_umami/themes/umami/components/title/title.component.yml
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/components/title/title.component.yml
  2. 11.x core/profiles/demo_umami/themes/umami/components/title/title.component.yml
  3. 11.x core/modules/navigation/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: stable
  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. meta:enum:
  24. ellipsis: Ellipsis
  25. xs: 'Extra-small'
  26. extra_classes:
  27. type: array
  28. title: Extra classes.
  29. description:
  30. External modifiers added from the placement context.
  31. https://en.bem.info/methodology/css/#mixes
  32. items:
  33. type: string
  34. html_tag:
  35. type: string
  36. title: HTML tag for title
  37. # Limit the available options by using enums.
  38. enum:
  39. - h1
  40. - h2
  41. - h3
  42. - h4
  43. - h5
  44. - h6
  45. - span
  46. meta:enum:
  47. h1: Heading 1
  48. h2: Heading 2
  49. h3: Heading 3
  50. h4: Heading 4
  51. h5: Heading 5
  52. h6: Heading 6
  53. span: Inline
  54. x-translation-context: HTML tag
  55. # Provide a default value
  56. default: h2
  57. icon:
  58. title: Icon
  59. type: string
  60. slots:
  61. content:
  62. title: Content
  63. description: Content of title.

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