Need private packages and team management tools?Check out npm Teams »

@bolt/components-nav-indicator

2.20.0 • Public • Published

The <bolt-nav-indicator> web component handles the display and animations of the active / inactive` links contained inside.

As the <bolt-nav-indicator> is a JavaScript and Sass-only web component, no Twig file is actually required. Components wiring up to use the <bolt-nav-indicator> wrap the containing unordered-list of <navlinks> and this component does all the heavy lifting!

<bolt-nav-indicator>
  <ul class="c-bolt-nav-priority__list c-bolt-nav-priority__primary">
    {% for item in links %}
      <li class="c-bolt-nav-priority__item">
        {% include "@bolt-components-navlink/navlink.twig" with item only %}
      </li>
    {% endfor %}
  </ul>
</bolt-nav-indicator>

Install

npm i @bolt/components-nav-indicator

DownloadsWeekly Downloads

1,323

Version

2.20.0

License

MIT

Unpacked Size

31 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar