dbgate/packages/web/src/forms/LargeFormButton.svelte
2021-03-11 20:37:05 +01:00

18 lines
417 B
Svelte

<script>
import { getFormContext } from './FormProviderCore.svelte';
import { createEventDispatcher } from 'svelte';
import LargeButton from '../elements/LargeButton.svelte';
const dispatch = createEventDispatcher();
const { values } = getFormContext();
function handleClick() {
dispatch('click', $values);
}
</script>
<LargeButton on:click={handleClick} {...$$props}>
<slot />
</LargeButton>