# <form>

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

Category: Forms and input.

```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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/form-light.webp), [dark](https://hypeapps.dev/img/tags/form-dark.webp).

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

- [Data and databases](https://hypeapps.dev/docs/guides/data.md)
- [Who's using the app ($me)](https://hypeapps.dev/docs/guides/me.md)
- [A chat thread](https://hypeapps.dev/docs/cookbook/chat.md)
- [Search on the server (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-search.md)

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<input>`](https://hypeapps.dev/docs/reference/input.md): A text field with a label, helper text, an icon and validation; type="code" draws one box per character.
- [`<button>`](https://hypeapps.dev/docs/reference/button.md): A tappable button that runs an action: a fetch, a navigation or a statement.
- [`<checkbox>`](https://hypeapps.dev/docs/reference/checkbox.md): A checkbox with a label; its state goes into a variable by name.
- [`<chip>`](https://hypeapps.dev/docs/reference/chip.md): A compact chip: a label, a filter that toggles, a single choice in a set, or an action.
- [`<color-picker>`](https://hypeapps.dev/docs/reference/color-picker.md): A color picker: a hue ring round a disc, with swatches; the chosen color goes into a variable.
- [`<data-cell>`](https://hypeapps.dev/docs/reference/data-cell.md): One cell of a data table row.
- [`<data-column>`](https://hypeapps.dev/docs/reference/data-column.md): A column heading of a data table.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
