ui_suite_daisyui-4.0.x-dev/components/link/link.twig
components/link/link.twig
{% set attributes = attributes.addClass('link') %}
{% if variant %}
{% set attributes = (variant != 'default') ? attributes.addClass('link-' ~ variant) : attributes %}
{% endif %}
{% if underline_hover %}
{% set attributes = attributes.addClass('link-hover') %}
{% endif %}
{% if url or attributes.href %}
{% set attributes = attributes.setAttribute('href', url) %}
{% endif %}
<a{{ attributes }}>
{{ label }}
</a>
