<template>
  <div>
    <h1 class="text-5xl">
    Formulaire de POi
    </h1>
    <form @submit="submitForm">
      <input type="text" v-model="machin">
      <button type="submit" value="envoyer" />
    </form>
  </div>
</template>

<script lang="ts" setup>
    const data = {
        name: 'machin'
    }
    const methods = {
      submitForm(event:Event){
        event.preventDefault()
        console.log('submit')
      }
    }
</script>
<style scoped></style>
