Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericgj/elm-accordion-menu
An Elm library for designing expandable menus or other "accordion" interfaces
https://github.com/ericgj/elm-accordion-menu
accordion elm elm-ui menu
Last synced: about 1 month ago
JSON representation
An Elm library for designing expandable menus or other "accordion" interfaces
- Host: GitHub
- URL: https://github.com/ericgj/elm-accordion-menu
- Owner: ericgj
- Created: 2017-08-23T22:29:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T22:11:34.000Z (over 7 years ago)
- Last Synced: 2024-10-21T18:20:51.782Z (3 months ago)
- Topics: accordion, elm, elm-ui, menu
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/ericgj/elm-accordion-menu/latest/AccordionMenu
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# elm-accordion-menu
An Elm library for designing expandable menus or other "accordion" interfaces.
## Examples
[Simple example](https://github.com/ericgj/elm-accordion-menu/blob/master/examples/Simple.elm)
|
[Live demo](https://ericgj.github.io/elm-accordion-menu/)## 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.