Custom form controls

If for some reason you're not using an HTML5 input or textarea as an input, you can always bind to the data store in order to let Felte manage your custom controls.

<script>
  import { createForm } from 'felte';

  const { form, data } = createForm({ /* ... */ });
</script>

<form use:form>
  <SomeCustomControl bind:value={$data.customControlValue} />
</form>