Just selecting a single value from a list. If this is all you need to do you should probably just use a
select
element.
Choose some programming languages, no need to just pick 1.
You can give your options a little more organization by grouping them.
Sometimes just a human friendly label for an option isn't enough, and you'd like to add a little extra "color".
You can filter your results by typing, <much-select>
will also use the descriptions when trying to find the option you want.
The labels and values are different
Set using the selected
attribute on the <much-select>
Disable the <much-select>
with the disabled
attribute.
Show and hide the loading indicator with the loading=""
attribute.
This has the "yellow" and "orange" options disabled.
As you type we'll query the remote API for additional options.
This dropdown searches the Rick and Morty API for characters from the show by name.
The events-only=""
attribute is a little specialized, it
is for when you are in a situation where something else really
wants to have full control over the DOM. Elm would an example of this. In
this case, we only want the much-select
element to emmit events
and leave it up to "something else" to managed its attributes.