badge.component.yml

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

File

core/profiles/demo_umami/themes/umami/components/badge/badge.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: Umami Badge
  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. # Props are always an object with keys. Each key is a variable in your
  11. # component template.
  12. type: object
  13. properties:
  14. attributes:
  15. type: Drupal\Core\Template\Attribute
  16. title: Attributes
  17. description: Wrapper attributes.
  18. icon:
  19. type: string
  20. description: Icon Name
  21. enum:
  22. - knife
  23. - timer
  24. - serves
  25. - difficulty
  26. slots:
  27. label:
  28. type: string
  29. description: Label text
  30. text:
  31. type: string
  32. description: Text

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