dsfr4drupal-1.x-dev/components/link/link.component.yml

components/link/link.component.yml
name: DSFR - Link
description: The link allows navigation between a page and other content within the same page, the same site or externally.
status: stable
group: DSFR
variants:
  xs:
    title: Extra small
    description: Component extra small size
  sm:
    title: Small
    description: Component small size
  md:
    title: Medium
    description: Component medium size (default)
  lg:
    title: Large
    description: Component large size
props:
  properties:
    attributes:
      type: Drupal\Core\Template\Attribute
      title: Attributes
    detail:
      type: string
      title: Detail
      description: Additional detail, added after the label.
    file_assess:
      type: boolean
      title: File assess
      default: false
      description: Evaluate the file (in "href" attribute) to automatically generate file details (type and size and language).
    force_internal:
      type: boolean
      title: Force internal?
      default: false
      description: 'Prevent external links target "_blank" attribute adding.'
    icon:
      type: string
      title: Icon
      description: 'Example: "checkbox-line"'
    icon_position:
      type: string
      title: Icon position
      enum:
        - left
        - right
    is_close:
      type: boolean
      title: Is a close link?
      default: false
    is_download:
      type: boolean
      title: Is a download link?
      default: false
    is_external:
      type: boolean
      title: Is external?
      default: false
    label:
      type: string
      title: Label
    target:
      type: string
      target: Target attribute
      description: 'Without "_" on prefix. External links. External links have a target "_blank" attribute by default.'
    title:
      type: string
      title: Title attribute
    url:
      type: string
      title: URL
  required:
    - label
    - url
libraryOverrides:
  dependencies:
    - dsfr4drupal/component.link

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc