my-cta-with-variant-prop.component.yml

core/modules/system/tests/modules/sdc_test/components/my-cta-with-variant-prop/my-cta-with-variant-prop.component.yml

File

core/modules/system/tests/modules/sdc_test/components/my-cta-with-variant-prop/my-cta-with-variant-prop.component.yml

View source
  1. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  2. name: Call to Action With Existing Variant Prop
  3. description: Call to action link.
  4. props:
  5. type: object
  6. required:
  7. - text
  8. properties:
  9. text:
  10. type: string
  11. title: Title
  12. description: The title for the cta
  13. examples:
  14. - Press
  15. - Submit now
  16. href:
  17. type: string
  18. title: URL
  19. format: uri
  20. target:
  21. type: string
  22. title: Target
  23. enum:
  24. - ''
  25. - _blank
  26. variant:
  27. type: string
  28. title: Variant Prop
  29. enum:
  30. - primary
  31. - secondary
  32. - tertiary
  33. attributes:
  34. type: Drupal\Core\Template\Attribute
  35. name: Attributes

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