How to add simple format tab (e.g. a simple bold) to the text in a TextBox component?

How do I format the text in a TextBox? I know I can use other components type such as Markdown, but I want to update the text when a state variable changes, and because of that I can’t use Markdown.