I'm looking for the Autocomplete element of Material UI and React for SolidJS. Many of the elements are available in Solid through https://suid.io/, but https://mui.com/material-ui/react-autocomplete/ seems to be missing. Is there any library available for this purpose? The goal is having a nicely styled SUID TextField that can be edited by the user, and it should be possible to select predefined options from a dropdown list.
It's also possible to specify the "select" attribute for the TextField, or specify an "input" element for Select. Is it possible to combine the two elements into one TextField that also has the dropdown list? What is the purpose of input for Select and select for TextField? I played with the attributes and only managed to get a normal TextField without the Select functionality. Any example or clarification would be welcome.
Not Material UI but there are some select libraries:
But you can create your own if you like:
selectedsignal and use it to control selected element on dropdown list.UpArrowandDownArrowkeydown events to increment and decrement selected value.Enterkeydown to accept selected item and use it as input value.Here is a working demo, you can improve on it. You can implement the mouse events on the list element for efficiency: Update the selected item on mousemove and update the text value on mousedown.
https://playground.solidjs.com/anonymous/e58974e7-287f-4f56-8ab3-33787d93c629