Text inside VerticalLayout

Hi! Is it by design that Text components inside VerticalLayout are placed horizontally?

add(new VerticalLayout(text1, text2))

image.png

For example in old Vaadin 7/8 there was Label component, so one is placed correctly inside VerticalLayout. What about Vaadin 24.1.1?

Text is just a text-node on the client side with other spacing / layouting behavior. If you want to to behave like a component you have to use e.g. Span, Div, Paragraph or other “real” elements

Thank you for your point!