You can import this library to help you in creating Custom Statuses for your components.
This simple utility library can be used to help format component custom statuses using HTML.
There are two example functions for formatting the different types of status information you want displayed. You can use them like this:
-- Formatting an informational status by passing in a label and a value local Status = STATrow("Filename", "ABC"); component.setStatus{data=Status} -- Formatting an error by passing an error message component.setStatus{data=STATerrorBlock("A problem has occured.")}
The main source file is here:
https://bitbucket.org/interfaceware/status/src/main/STATstatus.lua
Each function has help built in.