mediawiki-skins-MinervaNeue/components/ToggleList/ToggleListItem.mustache

16 lines
518 B
Plaintext
Raw Normal View History

{{!
array components
string|null components.class Optional anchor CSS class.
string|null components.href Optional URI.
string|null components.text Optional text.
string|null components.data-event-name Optional tracking code.
}}
{{#components}}
<li class="toggle-list-item">
<a class="toggle-list-item__anchor" href="{{href}}" data-event-name="{{data-event-name}}">
<span class="toggle-list-item__icon {{class}}"></span>
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>
{{/components}}