Text

Text rendering with font/color modifiers.

Example

// 
// ScriptWidget 
// https://xnu.app/scriptwidget
// 
// Usage for component text
// 

$render(
  <vstack frame="max">
    <text font="title">Hello ScriptWidget</text>
    <text font="caption" color="red">
      Hello ScriptWidget
    </text>
    <text font="caption" background="blue" color="white">
      Hello ScriptWidget
    </text>
  </vstack>
);