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
- $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
- name: Call to Action With Existing Variant Prop
- description: Call to action link.
- props:
- type: object
- required:
- - text
- properties:
- text:
- type: string
- title: Title
- description: The title for the cta
- examples:
- - Press
- - Submit now
- href:
- type: string
- title: URL
- format: uri
- target:
- type: string
- title: Target
- enum:
- - ''
- - _blank
- variant:
- type: string
- title: Variant Prop
- enum:
- - primary
- - secondary
- - tertiary
- attributes:
- type: Drupal\Core\Template\Attribute
- name: Attributes
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.