Implementing formatting API component
This sample component explores the various methods available as part of the Power Apps component framework formatting API. In this sample, you create a series of input elements which calls into the respective methods of the formatting API that matches with the value displayed.
Model-driven and canvas apps
You can download the complete sample component from here.