/elm-dropdown

A dropdown component built in Elm

Primary LanguageElmMIT LicenseMIT

elm-dropdown

A dropdown component built in Elm.

API

The component accepts the following params:

  1. value (String) - Initial value for the DD
  2. valuesList (List String) - List of values to be fed in as the DD options
  3. placeholder (String) - Placeholder value for the DD
  4. isOpen (Bool) - If the DD is open or not

Usage

For how to use, check the /Example/Example.elm file.

Custom styles

The component comes with a Dropdown.css file. Style changes should happen there. It's namespaced elm-dropdown.