@pbkware/astro-main-menu
v1.0.0
Published
Responsive Main Menu and Hamburger components for Astro
Downloads
470
Readme
Astro Main Menu
Responsive Main Menu and Hamburger components for Astro
Install
npm install @pbkware/astro-main-menu
Features
- 2 levels of menu items.
- Wide and narrow to support desktop and mobile.
- Configurable breakpoint to switch between wide and narrow.
- Menus specified by array of menu items passed as an attribute to MainMenu component.
- Easy formatting of menu CSS with settings object passed as an attribute to MainMenu and Hamburger components.
- Flexible formatting of menu CSS with access to scoped classes within menu HTML.
- Menu Item can also run JavaScript or TypeScript code (instead of navigating).
- Separate MainMenu and Hamburger components to provide flexibility in setting up navigation UI.
- Supports deactivating main menu when document is clicked outside of menu.
Astro Version
- 1.0.0 - built with Astro 5
- 0.9.2 - built with Astro 4
Demo and More information
https://pbkware.klink.au/astro-main-menu/