How can I dedicate space to a label inside my component?

Viewed 29

I have a textfield component with a label for errormessages. Whenever a errormessage appears, it missplaces the field with the error.

Is there anyway to preallocate the space needed for the errormessages?

1 Answers

Put your text label inside div with fixed height or width. Your space will always be there, and you show your text based on your error.

Related