Open History to see the last commit
1<script setup lang="ts">
2import { useFormContext } from '../hooks/form.ts'
3β
4defineProps<{ label: string }>()
5β
6const form = useFormContext()
7</script>
8β
9<template>
10 <form.Subscribe
11 :selector="(state) => state.isSubmitting"
12 v-slot="isSubmitting"
13 >
14 <button type="submit" :disabled="isSubmitting">{{ label }}</button>
15 </form.Subscribe>
16</template>