0.1.18 • Published 11 months ago

vitejs-newmenu v0.1.18

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Vitejs NewMenu

Vitejs NewMenu is a responsive header menu component built with Vite, Vanilla JS, and SCSS. It can be easily integrated into any web project.

Installation

Install the package using npm:

npm install vitejs-newmenu

Usage

  1. Import the JavaScript and CSS files into your project:
import 'vitejs-newmenu';
import 'vitejs-newmenu/dist/assets/style.css';
  1. Include the index.html file from the dist folder in your project. You can either copy the content of the index.html file and paste it into your project's HTML file, or you can load it using JavaScript:
async function loadNewMenu() {
  const response = await fetch('node_modules/vitejs-newmenu/dist/index.html');
  const html = await response.text();
  const container = document.querySelector('#newmenu-container');
  container.innerHTML = html;
}

loadNewMenu();

Make sure to add a container element with the id "newmenu-container" in your HTML file:

<div id="newmenu-container"></div>
  1. Customize the menu items and appearance as needed.
0.1.18

11 months ago

0.1.17

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago