Open Link
ScriptWidget template.
Example
//
// ScriptWidget
// https://xnu.app/scriptwidget
//
// Template for component link
//
$render(
<vstack frame="max">
<link url="https://www.baidu.com" background="blue">
<text>Baidu</text>
</link>
<link url="https://www.qq.com" background="green">
<text>QQ</text>
</link>
<link url="https://www.163.com" background="yellow">
<text>163</text>
</link>
</vstack>
);
Templates live in
Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/ and can be imported directly into the app.