form provider

This commit is contained in:
Jan Prochazka
2021-03-04 10:56:58 +01:00
parent 593e61abb9
commit 7acea0f4ac
7 changed files with 98 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
<script lang="ts">
import { writable } from 'svelte/store';
import FormProviderCore from './FormProviderCore.svelte';
export let initivalValues = {};
const values = writable(initivalValues);
</script>
<FormProviderCore {values}>
<slot />
</FormProviderCore>