Examples

Examples of text links used in CTA configurations.

Usage in Templates

{% from "components/_partials/text-link/text-link.njk" import textLink %}

{# Direct usage #}
{{ textLink({
  url: '/about',
  label: 'Learn More'
}) }}

{# Used within CTAs partial #}
{% for cta in section.ctas %}
  {% if not cta.isButton %}
    {{ textLink(cta) }}
  {% endif %}
{% endfor %}

Notes

  • Automatically detects external URLs and adds target="_blank' and rel="noopener noreferrer"
  • ARIA labels for external links
  • Used within CTAs partial for non-button links