nav-state

1.0.4 • Public • Published

nav-state

Highlight an element based on a state.

Examples

<a class="js-nav-state" href="/">
	Home
</a>
<li>
	<a class="js-nav-state" href="/">
		Home
	</a>
</li>
<div class="js-nav-state" data-nav-state-href="/">
	Home
</div>
<link rel="up" href="/pages/foo">
<link rel="up" href="/pages/foo-bar">

<a class="js-nav-state" href="/pages/foo">
	Foo
</a>

<a class="js-nav-state" href="/pages/foo-bar">
	Foo bar
</a>

Readme

Keywords

Package Sidebar

Install

npm i nav-state

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • fd
  • yvesvanbroekhoven