Create primitive widget in blueprint

I am trying to find a way to dynamically create and add a Text widget to a custom widget. But currently the Create Widget function only accepts UserWidgetClass and not the build in types.

My current workaround is to create a CustomTextWidget that only contains a text widget in it and create that widget and get the text widget from it but it is messy and cumbersome so I assume there is a better way?

i think you are doing it the correct way. you just spawn your custom widget that contains a text widget, and add the whole custom widget to a panel widget using AddChild.

at some point, you may want to add some kind of border or background or icon to that TextWidget, and since it is a custom widget, you can update all of them in the same place, changing the look of many menus throughout your game.