Modularizing the search bar

I need to create a sidebar for a plug-in.