Skip to content

Kiricon/side-nav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

side-nav

A HTML custom element implementing the <side-nav> tag.

side-nav in action

Setup

Installation

npm i side-nav

<script src="node_modules/side-nav/side-nav.js"></script>

or if you're bundling

import "side-nav";
// or
require("side-nav");

Usage

    <side-nav open>
        // Your content here ...
    </side-nav>

To have the side-nav open by default you can add the open property, other wise it will be closed.

You can also toggle the state of the side-nav by adding or remove the open property.

To programatically open or close the side nav you need only call the open(), close() or toggle() method.

About

Html custom element implementing the <side-nav> tag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors