Not sure what you mean by the question. To display the border based on the variable state? It would be something like this