Forms / Select

Select

Select menus can be useful when we want the user to select an option out of many. This components wraps the default HTML select element, so it has nice user experience by default, but it can be used to select custom types in Elm, so it has nice developer experience. Everyone's happy!

However, since it uses the default select element, we don't have many choices in customization, so it's a fairly simple component. Here's an example of it:

Basic example

It can also be disabled, or display an error:

Disabled

With error

Something went wrong