Figma Support Forum

Search bar variants best practice?

What is your approach to creating a search bar as a component?

– Do you use one separate component for the search bar it self that contains all the needed states and one component for the autocomplete layer or do you combine the search bar and the autocomplete layer as one complex variant?

I would combine them because autocomplete component is not a thing on itself, it can’t be used separately from the search bar component.

1 Like