📱
HTML Widget
  • HTML Widget
  • Getting Started
    • Regular Use
    • Module Use
  • About
    • The Function
    • Types
  • Components
    • <widget>
    • <stack>
    • <spacer>
    • <img>
    • <text>
    • <date>
    • <style>
    • <!-- Comment -->
  • Add-ons
    • Add-ons
    • <symbol>
    • <hr>
    • <progress>
    • <blockquote>
  • Template
    • Templates
    • Mapping
    • Render
  • Examples
    • Hello, World!
    • Reddit Widget
  • Closing Remarks
    • Bug Fixes and Feedback
    • Support
Powered by GitBook
On this page
  • Code
  • Widget
  1. Examples

Hello, World!

PreviousRenderNextReddit Widget

Last updated 2 months ago

Code

const htmlWidget = importModule("html-widget")

let widget = await htmlWidget(`
<widget>
  <text>Hello, World!</text>
</widget>
`)
Script.setWidget(widget)
widget.presentSmall()
Script.complete()

Widget