How to assign css-classes to my custom component

Hi devs,

do I have to use a Text-Control to enable users to assign a css-class to a part of my custom component or is there a special control (that f.e. support auto-fill) for that kind of purpose.

Thanks

Tobias