0

Is there a LWC that allows me to utilize it as a text input field and also a dropdown menu?

I need to display results as a dropdown but also allows user text input to search.

0

1 Answer 1

3

You likely need a typeahead or text lookup. There are a lot of components built by the people. It won't look exactly as drop-down. If you want to build that from scratch then you can use the lightning design system to create one.

In simplest approach, standard HTML input tag also have a list attribute that can help achieve this. https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist

1
  • Thanks for your advice, let me check out the w3 link you sent also.
    – ust
    Oct 15, 2020 at 15:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .