A dropdown component for Elm-UI providing:
Button or TextField Elements
Keyboard Navigation and Selection
[UP] & [DOWN] arrows will traverse up and down the menu.
[ENTER] will select the current menu option.
[ESC] will hide the menu.
[DOWN] arrow will show the menu if the menu is hidden and the root element has focus.
Position the label and menu above, below, left or right of the root element or hide the label completely.
All elements can be styled independently by providing their own list of Attributes .
Filter the menu options as the user enters text in the TextField.
elm install phollyer/elm-ui-dropdown
for some examples. Use
elm reactor to try them out locally.
Package docs are here .
Please log any bugs as an issue.
Feature requests and suggestions are welcome, please log them as an issue too.
Pull requests are also welcome.