Need help with Square Border Material for UI

Does it have to be a material? A simple border mode can already: