<a class="e-bolt-text-link">
and <a>
are acceptable at rendering a text link, though the Twig template is the recommended usage for Drupal.
class="e-bolt-text-link"
is required to get those features. Reference respective doc page for each feature.content
prop. <span>
, <em>
, and <strong>
tags are allowed.{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'Click me to go to google.com',
attributes: {
href: 'https://google.com',
target: '_blank',
rel: 'noopener'
}
} only %}
<a href="https://google.com" target="_blank" rel="noopener" class="e-bolt-text-link">Click me to go to google.com</a>