larva components: c-nav-link
Available Variants
prototypec-nav-link
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
c-nav-link
Twig The markup file.
<a class="c-nav-link {{ modifier_class }} {{ c_nav_link_classes }}" href="{{ c_nav_link_url }}"
{% if c_nav_link_aria_current_attr %}
aria-current="{{ c_nav_link_aria_current_attr }}"
{% endif %}
{% if c_nav_link_title_attr %}
title="{{ c_nav_link_title_attr }}"
{% endif %}
>
{{ c_nav_link_text }}
{% if c_nav_link_markup %}
{{ c_nav_link_markup }}
{% endif %}
{% if c_nav_link_screen_reader_text %}
<span class="lrv-a-screen-reader-only">{{ c_nav_link_screen_reader_text }}</span>
{% endif %}
</a>
c-nav-link
JSON The data object for this pattern.
{
"c_nav_link_classes": "",
"c_nav_link_text": "Navigation Item",
"c_nav_link_screen_reader_text": "Navigation Item",
"c_nav_link_url": "#",
"c_nav_link_aria_current_attr": "page"
}