# Form Handling Forms are a crucial part of any application. Lune makes handling form inputs and submission straightforward with `lu-model`. ## Basic Bindings ### Text Input ```html

Message is: {{ message }}

``` ### Checkbox ```html
``` ### Radio ```html

Picked: {{ picked }}

``` ### Select ```html

Selected: {{ selected }}

``` ## Form Submission You can use `lu-on:submit.prevent` (or `@submit.prevent`) to handle form submission via JavaScript. ```html
{{ error }}
``` ## Validation While you can use native HTML5 validation attributes (like `required`, `type="email"`), you might want custom validation logic. Derived values belong in a factory, where they can be plain JavaScript getters — a template object literal holds data only. ```html
{{ errorMessage }}
```