$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Button
replaces: 'sdc_test:my-button'
description: JavaScript enhanced button that tracks the number of times a user clicked it.
libraryOverrides:
  dependencies:
    - core/once
props:
  type: object
  required:
    - text
  properties:
    text:
      type: string
      title: Title
      description: The title for the button
      examples:
        - Press
        - Submit now
    iconType:
      type: string
      title: Icon Type
      enum:
        - power
        - like
        - external
      meta:enum:
        power: 'Power'
        like: 'Like'
        external: 'External'
