You can do that via styling.
You can take a look at these existing classes .mx-grid-searchbar, .mx-grid-controlbar and style them as per your need.