Skip to content

ericgj/elm-accordion-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-accordion-menu

An Elm library for designing expandable menus or other "accordion" interfaces.

Examples

Simple example | Live demo

Features and constraints:

  • Menu items can be whatever you want. They have the msg type of your application. Builder functions are provided for common cases.

  • The only state managed by the menu is open/closed state. (If you want to keep track of the "last selected menu item" for instance, you do that within your application.)

  • Menus can respond to either clicks or hover (mouseenter/mouseleave).

  • Only a single submenu level is permitted.

  • Absolute minimum styling, with helpers for typical cases and more fine- grained styling via inline styles or classes.