# FieldElementProps

> This document is the Markdown version of [formisch.dev/qwik/api/FieldElementProps/](https://formisch.dev/qwik/api/FieldElementProps/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

Props to spread onto a field element for integration with Qwik form handling.

## Definition

- `FieldElementProps`
  - `name` `string`
  - `autofocus` `boolean`
  - `ref` `QRL<(element: FieldElement) => void>`
  - `onFocus$` `QRL<() => void>`
  - `onInput$` `QRL<(event: InputEvent, element: FieldElement) => void>`
  - `onChange$` `QRL<(event: Event, element: FieldElement) => void>`
  - `onBlur$` `QRL<() => void>`

### Explanation

`onFocus$` marks the field as touched and runs the configured `'touch'` validation, while `onBlur$` runs the configured `'blur'` validation. Neither handler uses the event object, so their wrapped callbacks are typed as `() => void` and can be passed to native elements or custom components with different focus event types.
