Skip to content

barrysweeney/create-top-navbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

create-top-navbar

About

Module to create a top navigation bar

Install

npm i install create-top-navbar --save

Usage

// div to add navbar to
let menuDiv = document.getElementById("menu-div");

// function call returns HTML element
let navbar = createNavBar(
  "Example Title",
  "Example Dropdown Item 1",
  "Example Dropdown Item 2,
  "Example Dropdown Item 3"
);

// add to the div
menuDiv.appendChild(navbar);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published