my-banner.component.yml
Same filename in this branch
Same filename in other branches
File
-
core/
modules/ sdc/ tests/ modules/ sdc_test/ components/ my-banner/ my-banner.component.yml
View source
- $schema: https://git.drupalcode.org/project/sdc/-/raw/1.x/src/metadata.schema.json
- name: Banner
- description: Banner with title and a CTA link
- libraryOverrides:
- dependencies:
- - core/drupal
- props:
- type: object
- properties:
- heading:
- title: Heading
- description: The title for the banner text.
- examples:
- - Join us at The Conference
- type: string
- ctaText:
- title: CTA Text
- type: string
- examples:
- - Click me!
- ctaHref:
- title: CTA Href
- type: string
- examples:
- - 'https://www.example.org'
- ctaTarget:
- title: CTA Target
- type: string
- enum:
- - ''
- - _blank
- image:
- title: Media Image
- description: Background image for the banner.
- type: string
- slots:
- banner_body:
- title: Body
- description: The contents of the banner.
- examples:
- - <p>Foo is <strong>NOT</strong> bar.</p>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.