1. Reference
  2. Forms and input

<form>

A form: its named fields are local to it and are sent together when a button submits it.

Forms and input
form.ham
<form>
    <column style="gap-12 w-full">
        <input name="name"
               label="Full name"
               value="Maya Lin"/>
        <input name="email"
               label="Email"
               placeholder="maya@example.com"/>
        <button variant="filled"
                action="post:/signup">Sign up</button>
    </column>
</form>
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.

Guides and recipes that use it

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