Sorry, I’m not sure what you’re asking for.
How I would do it (maybe not the best solution but it should work):
- Letter-Prefab …
- … in a Horizontal Layout Group (= a word)…
- … in a Vertical Layout Group (= multiple words in a column) …
- … add a Content Size Fitter to change the size of the yellow panel
If you want 2 columns like in the second image: Same thing but 2 VLGs that are the children of another Horizontal Layout Group within the yellow panel.