Link

Information

Folder
src/components/link

Files

Schema
// src/components/link/schema.json

{
  "$schema": "http://json-schema.org/draft-07/schema",
  "required": [
    "label",
    "url"
  ],
  "properties": {
    "label": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}
Mocks
// src/components/link/mocks.json

{
  "label": "GitHub",
  "url": "https://github.com/mgrsskls"
}
Template
// src/components/link/index.hbs

<a class="Link" href="{{url}}" target="_blank" rel="noopener">
  <span class="Link-label">{{label}}</span>
</a>

Variants

default
Open