This is the standard “Quick” Search widget, that can be placed in a sidebar area:
How It’s Done
Here is the widget code showing you how this this display is generated.
The Quick Search widget generates a simplified search form. This is useful when you want a search in a sidebar.
As with all widgets the Quick Search is responsive so it will adjust to fit the available space.