1. Reference
  2. Display

<options>

Inside a drawing tool written in HAM, the tool's options popover.

Display
options.ham
<draw-tool name="lasso"
           label="Lasso"
           icon="gesture">
    <options>
        <column style="gap-8 p-12">
            <text style="font-semibold">Lasso</text>
            <button action="#pad.selection.fill">Fill</button>
            <button action="#pad.selection.delete">Delete</button>
            <button action="#pad.tool.options:close">Done</button>
        </column>
    </options>
</draw-tool>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

This page is also Markdown, and all of HAM is in llms.txt.