Skip to main content

atoms

Link

The base anchor. It adds noopener, a new tab, and an indicator icon to external URLs, and takes text or a call body.

Specimens

Internal
{{ Link.render({ url: "/work/", text: "See the work" }) }}
External An absolute URL opens in a new tab with an external-link icon.
{{ Link.render({ url: "https://example.com/", text: "Example site" }) }}
Markup content A call body replaces the text.
{% call Link.render({ url: "/contact/", ariaLabel: "Contact me" }) %}
  <strong>Get</strong> in touch
{% endcall %}

Params

ParamTypeDescription
urlstringhref. Decides whether the link is external.
textstringLink text. Ignored when called with {% call %}.
titlestringFallback text when text is empty; also emitted as the title attribute.
classesstring | variant map | arrayAppended to the base-link text-current baseline through the classes filter.
relstringExtra rel tokens (e.g. prev), merged with the automatic noopener noreferrer.
ariaLabelstringaria-label.
ariaCurrentstringaria-current, e.g. page for the current nav item.
downloadboolAdds the download attribute.
attrsstringRaw extra attributes (data-*, id), output with safe.

Content is plain text, or markup through {% call Link.render({ url: "/work/" }) %}…{% endcall %}.

  • classes replaced class on 2026-10-02. Callers migrated: blog.njk, skip-links-nav.njk, design-pages.njk.
  • rel merges with the automatic noopener noreferrer on external links, so the element never gets two rel attributes.
  • Follows the Component API spec.