Adding new elements with code

Adding new elements with code

Hello, is there an way that creates new label with code?

Using an extension such as CompCreator by @Kevinkun or Dynamic Components by @yusufcihan