eurostar-sub-navigation

1.0.1 • Public • Published

Provides a sub-navigation to be displayed as a secondary navigation. The component can provide anchor links on the same page to the referenced target or point toward other pages as classical urls.

The anchor variants takes a target key to be passed inside the data-scroll attribute. The value of the target key needs to be specified as the id of the container which should be scrolled to. As an example:

  <a data-scroll="#{{ link.target }}">
    <div class="c-sub-navigation-item">
       <span>{{ link.text }}</span>
    </div>
  </a>

Will scroll to the portion of the page with a container with an id of link-target. As an example, if the value of link.target is the_target it will scroll to:

  <div id="the_target"></div>

Readme

Keywords

none

Package Sidebar

Install

npm i eurostar-sub-navigation

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • eurostar-npm