Button as an <a> element
When appropriate, an <a> element can use the button style. For example, the button helps to navigate to another page.
Important Notes:
If a button serves navigational purpose, the proper URL must be set with the href attribute.
Demo
This looks like a button but semantically is an anchor
Twig
{% include '@bolt-elements-button/button.twig' with {
content: 'This looks like a button but semantically is an anchor',
attributes: {
href: 'https://pega.com',
}
} only %}
HTML
<a href="https://pega.com" class="e-bolt-button">This looks like a button but semantically is an anchor</a>