Button to searchbar

Hey there, currently building an app with Ionic 5.
To save space, I wanted to create a button on my menu to search for entries. If the button is pressed, I want it to become the searchbar and if dismissed, I want it to become a button again.

Is there a quick solution for this available in the ionic framework?

Thank you in advance!

No, you would need custom logic with css to do that.