API example for modifing a text component

Interesting idea, sit I think with a slightly or somewhat similar question.