icon-bookended:
  namespace: "Atoms/TM - Links"
  use: "@atoms/tm-links/icon-bookended/icon-bookended.twig"
  label: Bookended Links
  description: Bookended Links with status defaults.
  fields:
    text:
      type: text
      label: Text
      description: The text of your link
      preview:
        faker: lorem.sentence
    tgl_text:
      type: text
      label: Toggle text
      description: Text for a toggle link
    url:
      type: url
      label: Url
      description: The url of your link
      preview:
        faker: lorem.sentence

  settings:
    display:
      type: select
      label: Level
      description: The display of the element, can be 'flex' for block or 'inline-flex' for inline
      options:
        flex: Block (flex)
        inline: Inline (flex)
        noflex: Inline (no flex)
    icon_left:
      type: textfield
      label: Left icon
      description: The left icon for your bookend link
      preview: "fas fa-check"
    icon_right:
      type: textfield
      label: Right icon
      description: The right icon for your bookend link
      preview: "fas fa-plus"
    class:
      type: textfield
      label: Class
      description: The class for your link, applies to the <a>
      preview: "link-class"
    status:
      type: select
      label: Status
      description: A mapped value for classes and icons, can be 'good', 'minor' or 'major'
      options:
        good: good
        minor: minor
        major: major
    toggle:
      type: select
      label: Toggle
      description: Whether the right icon is used for a collapse toggle. Can be 'sign' for plus/minus, or 'chevron'
      options:
        sign: sign
        chevron: chevron
    toggle_open:
      type: boolean
      label: Toggle state
      description: If toggle, collapsed or not. default is false - collapsed.
      default_value: false
    attr:
      type: attributes
      label: Attributes
      description: An attributes object from a parent template.
    tag_name:
      type: textfield
      label: Tag name
      description: The tag to use when no using an 'a', default is 'span'
      preview: span
      default_value: span
