This PR creates a Select component that support's the use of masks.
Now there are 2 selects, the Masked Select and the regular Select, to use it it is just like a regular controlled select input, you need to pass a namelabelvalueonChangeoptionsplaceholder.
Description
This PR creates a Select component that support's the use of masks.
Now there are 2 selects, the
Masked Select
and the regularSelect
, to use it it is just like a regular controlled select input, you need to pass aname
label
value
onChange
options
placeholder
.Example:
The
options
must be an an array of strings or an array of an option hash:It follows the w3 guidelines for accessible comboboxes: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/. thanks @dmtrek14 :rocket: (also I added some tests for it under the keyboard navigation section, if I missed anything please let me know)
Demo
Screencast from 2023-10-30 16-00-48.webm