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
{{ Link.render({ url: "/work/", text: "See the work" }) }}{{ Link.render({ url: "https://example.com/", text: "Example site" }) }}{% call Link.render({ url: "/contact/", ariaLabel: "Contact me" }) %}
<strong>Get</strong> in touch
{% endcall %}Params
| Param | Type | Description |
|---|---|---|
url | string | href. Decides whether the link is external. |
text | string | Link text. Ignored when called with {% call %}. |
title | string | Fallback text when text is empty; also emitted as the title attribute. |
classes | string | variant map | array | Appended to the base-link text-current baseline through the classes filter. |
rel | string | Extra rel tokens (e.g. prev), merged with the automatic noopener noreferrer. |
ariaLabel | string | aria-label. |
ariaCurrent | string | aria-current, e.g. page for the current nav item. |
download | bool | Adds the download attribute. |
attrs | string | Raw extra attributes (data-*, id), output with safe. |
Content is plain text, or markup through {% call Link.render({ url: "/work/" }) %}…{% endcall %}.
classesreplacedclasson 2026-10-02. Callers migrated:blog.njk,skip-links-nav.njk,design-pages.njk.relmerges with the automaticnoopener noreferreron external links, so the element never gets tworelattributes.- Follows the Component API spec.