Skip to content

pookage/web-components-menu-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Menu Button with Web Components

Menu Button demo

A Menu Button component with open/closed state made with:

  • Web Components
  • CSS Modules
  • SCSS
  • Webpack

Live demo here

Usage

<menu-button>
	<span slot="label">
		Menu
	</span>
</menu-button>

Building

  1. Clone the repo locally
  2. From the local folder, run npm install to install dependencies

...for development

  1. Run npm run build-dev to initialise a webpack-dev-server, which will hot-reload if the contents of /src/ are changed.

...for production

  1. Run npm run build-prod to bundle the app with webpack - the generated bundle.js will be placed in /dist/.

NOTE: the index.html will be copied from /src/ to /dist/ when build-prod or build-dev are initially run, but changes to index.html will not trigger a hot-reload from the dev-server.

About

A menu-button made entirely with vanilla web-components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published