MagicForm | <magic-form>

captures the submit event of the nested form and sends it to MagicFormProvider

Examples

<MagicForm>
  <form action="user">
    <input type="text" name="name" />
    <input type="text" name="email" />
    <button>Create user</button>
  </form>
</MagicForm>

Events

Properties

Property.state

interface MagicFormActionStatus{
    result?:any,
    timestamp?: number,
    status: "pending" | "fulfilled" | "rejected"
}

Last updated