Can we make a floating label with a custom css border

Trying to make something like this:

is there any way to modify what ionic floating label gives us to create a border around the floating label?