Extend visual component attributes without inheritance

I know that UI Roadmap has a suggestion to add text auto size, but I’m interested in the following question:

In order to add text auto size functionality myself, I have to create my own version of the component using inheritance?

Is there no possibility to extend the functionality of the standard component with some attribute or something similar?