When one of a variant is empty/null, how to set the variant in a whole component?

I am doing a set of INPUT components, the Search case will not have the Error status, I have no way to know what I should do when composing the variants.

NEED HELP. THX GUYS.